aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}