aboutsummaryrefslogtreecommitdiff
path: root/engines/parallaction/inventory.cpp
diff options
context:
space:
mode:
authorNicola Mettifogo2009-10-16 00:08:18 +0000
committerNicola Mettifogo2009-10-16 00:08:18 +0000
commit1dfc808aadd82347020882d472b2c27a6dddff60 (patch)
tree4ab954fd89ef0713efd38a9a05d468679d4db006 /engines/parallaction/inventory.cpp
parentd560de52344b07fbbe088579566ba98f8847238b (diff)
downloadscummvm-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
Diffstat (limited to 'engines/parallaction/inventory.cpp')
-rw-r--r--engines/parallaction/inventory.cpp2
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;
}