diff options
-rw-r--r-- | engines/supernova/state.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/supernova/state.cpp b/engines/supernova/state.cpp index 7a77705e57..347e9dc7f5 100644 --- a/engines/supernova/state.cpp +++ b/engines/supernova/state.cpp @@ -159,8 +159,10 @@ Inventory::Inventory() : _numObjects(0) { // TODO: Update Inventory surface for scrolling void Inventory::add(Object &obj) { - if (_numObjects < kMaxCarry) + if (_numObjects < kMaxCarry) { _inventory[_numObjects++] = &obj; + obj.setProperty(CARRIED); + } // if (inventory_amount>8) inventory_scroll = ((inventory_amount+1)/2)*2-8; // show_inventory(); |