aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/gob/hotspots.cpp2
-rw-r--r--engines/gob/hotspots.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/gob/hotspots.cpp b/engines/gob/hotspots.cpp
index 4da2262eb1..e65ad13088 100644
--- a/engines/gob/hotspots.cpp
+++ b/engines/gob/hotspots.cpp
@@ -1564,7 +1564,7 @@ int16 Hotspots::findCursor(uint16 x, uint16 y) const {
return cursor;
}
-bool Hotspots::searchHotspot(int16 shortId) {
+bool Hotspots::searchHotspot(int16 shortId) const {
for (int i = 0; i < kHotspotCount; i++) {
if (_hotspots[i].isDisabled())
return false;
diff --git a/engines/gob/hotspots.h b/engines/gob/hotspots.h
index 25e77d526b..707a912ed5 100644
--- a/engines/gob/hotspots.h
+++ b/engines/gob/hotspots.h
@@ -102,7 +102,7 @@ public:
int16 findCursor(uint16 x, uint16 y) const;
/** Check the existance of a hotspot based on its short Id */
- bool searchHotspot (int16 shortId);
+ bool searchHotspot(int16 shortId) const;
private:
struct Hotspot {