diff options
-rw-r--r-- | scumm/object.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scumm/object.cpp b/scumm/object.cpp index e0a4b32928..9883b3e546 100644 --- a/scumm/object.cpp +++ b/scumm/object.cpp @@ -373,6 +373,10 @@ int ScummEngine::findObject(int x, int y) { } } while ((_objs[b].state & mask) == a); } + + if ((_features & GF_NES) && (v2_mouseover_box != -1)) + return findInventory(VAR(VAR_EGO), v2_mouseover_box + _inventoryOffset + 1); + return 0; } |