2-handed fix update to official.

if (index < 0 || index >= ARRAYLENGTH(equip_index))
return false;
-to-
if (index < 0 || index >= MAX_INVENTORY)
return true;