aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2013-09-10 09:52:36 +0300
committerEugene Sandulenko2013-09-10 09:52:36 +0300
commitfda471ee800ed2e9ef3f4b3369dc508155d0c82e (patch)
treeef3e0fc4de5a9e7cd8b01d4e110340a089031d39
parent5770ae175e1cb9fb81d88c04dd7d1c1697830389 (diff)
downloadscummvm-rg350-fda471ee800ed2e9ef3f4b3369dc508155d0c82e.tar.gz
scummvm-rg350-fda471ee800ed2e9ef3f4b3369dc508155d0c82e.tar.bz2
scummvm-rg350-fda471ee800ed2e9ef3f4b3369dc508155d0c82e.zip
FULLPIPE: Fix stupid type. CID 1072975
-rw-r--r--engines/fullpipe/inventory.cpp6
1 files 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;
}