aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2017-12-24 14:08:56 -0500
committerPaul Gilbert2017-12-24 23:53:32 -0500
commit7a8d99f33292a00f9d654341abf4189dc3bd71d3 (patch)
tree30aacf4b5c8b72e2e8aef52ac3693d81e2fc3e55
parent6f87fa97c10f8b229be6ecc92a2d188164abd810 (diff)
downloadscummvm-rg350-7a8d99f33292a00f9d654341abf4189dc3bd71d3.tar.gz
scummvm-rg350-7a8d99f33292a00f9d654341abf4189dc3bd71d3.tar.bz2
scummvm-rg350-7a8d99f33292a00f9d654341abf4189dc3bd71d3.zip
XEEN: Fix transitioning to other maps in the overworld
-rw-r--r--engines/xeen/map.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/xeen/map.cpp b/engines/xeen/map.cpp
index 6a442be247..688e46a568 100644
--- a/engines/xeen/map.cpp
+++ b/engines/xeen/map.cpp
@@ -1636,7 +1636,7 @@ void Map::getNewMaze() {
// Get the correct map to use from the cached list
_mazeDataIndex = 0;
- while (_mazeData[_mazeDataIndex]._mazeId == mapId)
+ while (_mazeData[_mazeDataIndex]._mazeId != mapId)
++_mazeDataIndex;
// Adjust Y and X to be in the 0-15 range, and on the correct surrounding