aboutsummaryrefslogtreecommitdiff
path: root/engines/gob/hotspots.cpp
diff options
context:
space:
mode:
authorArnaud Boutonné2009-09-30 19:14:46 +0000
committerArnaud Boutonné2009-09-30 19:14:46 +0000
commitf1c76e2dcb405444c4ddf1959cdad402b613f8b3 (patch)
tree9759ae5eb5889320a099142baf069532dae03683 /engines/gob/hotspots.cpp
parent8ba75fc522f16844524dd4d6f88c3851e2402969 (diff)
downloadscummvm-rg350-f1c76e2dcb405444c4ddf1959cdad402b613f8b3.tar.gz
scummvm-rg350-f1c76e2dcb405444c4ddf1959cdad402b613f8b3.tar.bz2
scummvm-rg350-f1c76e2dcb405444c4ddf1959cdad402b613f8b3.zip
Fascination - Fix a regression in intro (fix of R42171)
svn-id: r44496
Diffstat (limited to 'engines/gob/hotspots.cpp')
-rw-r--r--engines/gob/hotspots.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/engines/gob/hotspots.cpp b/engines/gob/hotspots.cpp
index 4f863888fb..d2ad46c04c 100644
--- a/engines/gob/hotspots.cpp
+++ b/engines/gob/hotspots.cpp
@@ -1411,7 +1411,15 @@ bool Hotspots::evaluateFind(uint16 key, int16 timeVal, const uint16 *ids,
} else if (hotspotIndex2 != 0) {
findNthPlain(hotspotIndex2, endIndex, id, index);
} else {
- findNthPlain(0, 0, id, index);
+ // Enter the first hotspot
+ for (int i = 0; (i < kHotspotCount) && !_hotspots[i].isEnd(); i++) {
+ Hotspot &spot = _hotspots[i];
+ if (spot.isFilledNew()) {
+ id = spot.id;
+ index = i;
+ break;
+ }
+ }
// Leave the current hotspot
if ((_currentKey != 0) && (_hotspots[_currentIndex].funcLeave != 0))