Fixed assertions and made code match dissassembly in res/scripts/client/account_helpers/inventory.py