diff options
author | Joseph-Eugene Winzer | 2017-12-24 13:15:51 +0100 |
---|---|---|
committer | Thierry Crozat | 2018-01-23 02:15:44 +0000 |
commit | 8451f70c9758f991bb616479e77b12b984560ff2 (patch) | |
tree | c8a98de55035c132223bf9f0918286e20722ddd0 | |
parent | 6e7da438896b4fe089c90d26d4d2e1aab934677a (diff) | |
download | scummvm-rg350-8451f70c9758f991bb616479e77b12b984560ff2.tar.gz scummvm-rg350-8451f70c9758f991bb616479e77b12b984560ff2.tar.bz2 scummvm-rg350-8451f70c9758f991bb616479e77b12b984560ff2.zip |
SUPERNOVA: Sets CARRIED flag when added to inventory
-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(); |