aboutsummaryrefslogtreecommitdiff
path: root/scumm/object.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scumm/object.cpp')
-rw-r--r--scumm/object.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/scumm/object.cpp b/scumm/object.cpp
index 9883b3e546..f5d6caf65a 100644
--- a/scumm/object.cpp
+++ b/scumm/object.cpp
@@ -374,7 +374,8 @@ int ScummEngine::findObject(int x, int y) {
} while ((_objs[b].state & mask) == a);
}
- if ((_features & GF_NES) && (v2_mouseover_box != -1))
+ if ((_features & GF_NES) && (_userState & 0x40) && (v2_mouseover_box >= 0) &&
+ (v2_mouseover_box < 4))
return findInventory(VAR(VAR_EGO), v2_mouseover_box + _inventoryOffset + 1);
return 0;