aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph-Eugene Winzer2017-12-24 13:15:51 +0100
committerThierry Crozat2018-01-23 02:15:44 +0000
commit8451f70c9758f991bb616479e77b12b984560ff2 (patch)
treec8a98de55035c132223bf9f0918286e20722ddd0
parent6e7da438896b4fe089c90d26d4d2e1aab934677a (diff)
downloadscummvm-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.cpp4
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();