From fda471ee800ed2e9ef3f4b3369dc508155d0c82e Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Tue, 10 Sep 2013 09:52:36 +0300 Subject: FULLPIPE: Fix stupid type. CID 1072975 --- engines/fullpipe/inventory.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/engines/fullpipe/inventory.cpp b/engines/fullpipe/inventory.cpp index 1abd369e7b..1e229f3408 100644 --- a/engines/fullpipe/inventory.cpp +++ b/engines/fullpipe/inventory.cpp @@ -319,7 +319,7 @@ bool CInventory2::handleLeftClick(ExCommand *cmd) { if (!_isInventoryOut) return false; - bool res = false; + bool res = false; for (uint i = 0; i < _inventoryIcons.size(); i++) { if (cmd->_x >= _inventoryIcons[i]->x1 && cmd->_x <= _inventoryIcons[i]->x2 && @@ -343,8 +343,8 @@ bool CInventory2::handleLeftClick(ExCommand *cmd) { } } - if (!res) - unselectItem(this); + if (!res) + unselectItem(0); return res; } -- cgit v1.2.3