diff options
author | Nicola Mettifogo | 2009-10-16 00:08:18 +0000 |
---|---|---|
committer | Nicola Mettifogo | 2009-10-16 00:08:18 +0000 |
commit | 1dfc808aadd82347020882d472b2c27a6dddff60 (patch) | |
tree | 4ab954fd89ef0713efd38a9a05d468679d4db006 | |
parent | d560de52344b07fbbe088579566ba98f8847238b (diff) | |
download | scummvm-rg350-1dfc808aadd82347020882d472b2c27a6dddff60.tar.gz scummvm-rg350-1dfc808aadd82347020882d472b2c27a6dddff60.tar.bz2 scummvm-rg350-1dfc808aadd82347020882d472b2c27a6dddff60.zip |
Fixed bug 2879805. Typo in inventory code made the inventory impossible to cleanup on loadgame.
svn-id: r45140
-rw-r--r-- | engines/parallaction/inventory.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/parallaction/inventory.cpp b/engines/parallaction/inventory.cpp index f50451dc13..5ead55bbef 100644 --- a/engines/parallaction/inventory.cpp +++ b/engines/parallaction/inventory.cpp @@ -319,7 +319,7 @@ void Inventory::clear(bool keepVerbs) { uint first = (keepVerbs ? _numVerbs : 0); - for (uint16 slot = first; slot < _numVerbs; slot++) { + for (uint16 slot = first; slot < _numItems; slot++) { _items[slot]._id = 0; _items[slot]._index = 0; } |