aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/dm/dungeonman.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/dm/dungeonman.cpp b/engines/dm/dungeonman.cpp
index c933744c19..e6d94ec07d 100644
--- a/engines/dm/dungeonman.cpp
+++ b/engines/dm/dungeonman.cpp
@@ -357,7 +357,7 @@ void DungeonMan::loadDungeonFile() {
byte *square = _rawMapData + _maps[i].rawDunDataOffset;
*colFirstSquares++ = square;
for (uint16 w = 1; w <= _maps[i].width; ++w) {
- square += _maps[w].height + 1;
+ square += _maps[i].height + 1;
*colFirstSquares++ = square;
}
}