From 1dfc808aadd82347020882d472b2c27a6dddff60 Mon Sep 17 00:00:00 2001 From: Nicola Mettifogo Date: Fri, 16 Oct 2009 00:08:18 +0000 Subject: Fixed bug 2879805. Typo in inventory code made the inventory impossible to cleanup on loadgame. svn-id: r45140 --- engines/parallaction/inventory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/parallaction/inventory.cpp') 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; } -- cgit v1.2.3