aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWinterGrascph2016-05-17 22:14:34 +0200
committerBendegúz Nagy2016-08-26 23:02:22 +0200
commit909ec36edf6206efac5d2b4bea32a019520087b7 (patch)
tree490694d1a3a3f656f97ec5c8112fa997b48d16aa
parent2e9483cf2e5937f03bc89f9366d3b84d1199237b (diff)
downloadscummvm-rg350-909ec36edf6206efac5d2b4bea32a019520087b7.tar.gz
scummvm-rg350-909ec36edf6206efac5d2b4bea32a019520087b7.tar.bz2
scummvm-rg350-909ec36edf6206efac5d2b4bea32a019520087b7.zip
DM: Fix loading map data in loadDungeonFile(..)
-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;
}
}