I want to get charges of the item invoked, but if I try with (itm@ gItem 'charges), it returns zero even if the item has non-zero charges. However, when I try (itm@ (random (objGetItems gPlayerShip "cI")) 'charges) for a cargo hold, I get the actual number of charges that item has instead of zero if I used gItem instead.

This bug may also be related with the infinite use contraband box bug.

george moromisato 20 Nov 2020:

I believe this is fixed in 1.9 Beta 3. Please re-test and re-open if it still fails.