From 37cdd1c69ad4a1750c3041d5cceeed676da9061f Mon Sep 17 00:00:00 2001 From: Nicola Mettifogo Date: Fri, 24 Aug 2007 20:14:51 +0000 Subject: First step in restructuring engine code: - code has been consolidated in fewer files - new table-driven parsers/execution - some functions has been pushed down the engine hierarchy - Parallaction_br now inherits from Parallaction_ns svn-id: r28711 --- 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 c9e74b2074..2804578c84 100644 --- a/engines/parallaction/inventory.cpp +++ b/engines/parallaction/inventory.cpp @@ -157,7 +157,7 @@ void Parallaction::dropItem(uint16 v) { bool found = false; for (uint16 slot = 0; slot < INVENTORY_MAX_ITEMS - 1; slot++) { - if (v + INVENTORY_FIRST_ITEM == _inventory[slot]._index) { + if (v == _inventory[slot]._index) { found = true; } -- cgit v1.2.3