diff options
author | Thierry Crozat | 2018-01-10 21:37:01 +0000 |
---|---|---|
committer | Thierry Crozat | 2018-01-23 02:15:47 +0000 |
commit | 963ad97e2a5d7b1dc27bd7c08e5dffbe988d45fb (patch) | |
tree | 20b1d064f01122ce34cd9de4757c7de09827348b /engines/supernova/state.cpp | |
parent | e1959627639a4cfb50473c892a50d05598d44178 (diff) | |
download | scummvm-rg350-963ad97e2a5d7b1dc27bd7c08e5dffbe988d45fb.tar.gz scummvm-rg350-963ad97e2a5d7b1dc27bd7c08e5dffbe988d45fb.tar.bz2 scummvm-rg350-963ad97e2a5d7b1dc27bd7c08e5dffbe988d45fb.zip |
SUPERNOVA: Fix missing reset of object CARRIED flag when clearing inventory
Diffstat (limited to 'engines/supernova/state.cpp')
-rw-r--r-- | engines/supernova/state.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/supernova/state.cpp b/engines/supernova/state.cpp index 50a7fd2223..a0776b3382 100644 --- a/engines/supernova/state.cpp +++ b/engines/supernova/state.cpp @@ -184,6 +184,8 @@ void Inventory::remove(Object &obj) { } void Inventory::clear() { + for (int i = 0; i < _numObjects; ++i) + _inventory[i]->disableProperty(CARRIED); _numObjects = 0; _inventoryScroll = 0; } |