Skip to content

Commit

Permalink
XEEN: Fix transitioning to other maps in the overworld
Browse files Browse the repository at this point in the history
  • Loading branch information
dreammaster committed Dec 25, 2017
1 parent 6f87fa9 commit 7a8d99f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engines/xeen/map.cpp
Expand Up @@ -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
Expand Down

0 comments on commit 7a8d99f

Please sign in to comment.