diff options
author | Arnaud Boutonné | 2009-09-30 19:14:46 +0000 |
---|---|---|
committer | Arnaud Boutonné | 2009-09-30 19:14:46 +0000 |
commit | f1c76e2dcb405444c4ddf1959cdad402b613f8b3 (patch) | |
tree | 9759ae5eb5889320a099142baf069532dae03683 /engines | |
parent | 8ba75fc522f16844524dd4d6f88c3851e2402969 (diff) | |
download | scummvm-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')
-rw-r--r-- | engines/gob/hotspots.cpp | 10 |
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)) |