aboutsummaryrefslogtreecommitdiff
path: root/engines/tony/inventory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/tony/inventory.cpp')
-rw-r--r--engines/tony/inventory.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/tony/inventory.cpp b/engines/tony/inventory.cpp
index dbd3ad6840..647e4264c7 100644
--- a/engines/tony/inventory.cpp
+++ b/engines/tony/inventory.cpp
@@ -763,9 +763,10 @@ int RMInterface::onWhichBox(RMPoint pt) {
max = 5;
// Find the verb
- for (i = 0; i < max; i++)
+ for (i = 0; i < max; i++) {
if (_hotbbox[i].ptInRect(pt))
return i;
+ }
// Found no verb
return -1;