aboutsummaryrefslogtreecommitdiff
path: root/engines/gob
diff options
context:
space:
mode:
authorSven Hesse2009-09-09 23:10:53 +0000
committerSven Hesse2009-09-09 23:10:53 +0000
commitae3cc2ca5fe2992faf5c6892715c859a8abfbca2 (patch)
treee869e16545b33ea7cee72a48cbdcf33476d04ef0 /engines/gob
parent3259a6f0b5f2a82d521b1453813fd1bde2a2a022 (diff)
downloadscummvm-rg350-ae3cc2ca5fe2992faf5c6892715c859a8abfbca2.tar.gz
scummvm-rg350-ae3cc2ca5fe2992faf5c6892715c859a8abfbca2.tar.bz2
scummvm-rg350-ae3cc2ca5fe2992faf5c6892715c859a8abfbca2.zip
Really fixing searchHotspot, syntax-wise at least. (Note: Hotspots::Hotspot::left is unsigned, so a comparison with -1 will always yield false. And for left == 0xFFFF a method already exists, Hotspots::Hotspot::isEnd())
svn-id: r44022
Diffstat (limited to 'engines/gob')
-rw-r--r--engines/gob/hotspots.cpp2
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;