A number of inventory commands, including addMagazine, addItem, and canAddItemToXXX, are sometimes not detecting free inventory space correctly, and return false even if there is space left to add a specific item in the inventory.
This mostly happens when the inventory is nearly full. Attached is a repro mission that illustrates the problem. {F25095}