diff options
-rw-r--r-- | engines/parallaction/inventory.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/parallaction/inventory.cpp b/engines/parallaction/inventory.cpp index f654181046..c43f13e44b 100644 --- a/engines/parallaction/inventory.cpp +++ b/engines/parallaction/inventory.cpp @@ -122,7 +122,7 @@ int16 pickupItem(Zone *z) { if (_si == INVENTORY_MAX_ITEMS) return -1; - _inventory[_si]._id = (z->u.get->_icon << 16) & 0xFFFF0000; + _inventory[_si]._id = MAKE_INVENTORY_ID(z->u.get->_icon); _inventory[_si]._index = z->u.get->_icon; addJob(jobRemovePickedItem, z, kPriority17 ); @@ -140,7 +140,7 @@ void addInventoryItem(uint16 item) { uint16 _si = 0; while (_inventory[_si]._id != 0) _si++; - _inventory[_si]._id = (item << 16) & 0xFFFF0000; + _inventory[_si]._id = MAKE_INVENTORY_ID(item); _inventory[_si]._index = item; refreshInventoryItem(_vm->_characterName, _si); |