diff options
-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; } |