Fixed|libcommon: Updating the ready item of the inventory

It appears P_GetInvItem() was being called with an invalid parameter.