diff options
-rw-r--r-- | engines/gob/hotspots.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/gob/hotspots.cpp b/engines/gob/hotspots.cpp index 5c3291ea32..20445afcd0 100644 --- a/engines/gob/hotspots.cpp +++ b/engines/gob/hotspots.cpp @@ -1567,7 +1567,7 @@ int16 Hotspots::findCursor(uint16 x, uint16 y) const { bool Hotspots::searchHotspot(int16 shortId) const { for (int i = 0; i < kHotspotCount; i++) { - if (_hotspots[i].left == -1) + if (_hotspots[i].isEnd()) return false; if ((_hotspots[i].id == 0xD000 + shortId) || (_hotspots[i].id == 0xB000 + shortId) || (_hotspots[i].id == 0x4000 + shortId)) return true; |