Fix an OOB write in InventoryBarUpdatePosition().