From 7a8d99f33292a00f9d654341abf4189dc3bd71d3 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sun, 24 Dec 2017 14:08:56 -0500 Subject: XEEN: Fix transitioning to other maps in the overworld --- engines/xeen/map.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3