diff options
author | WinterGrascph | 2016-05-17 22:14:34 +0200 |
---|---|---|
committer | Bendegúz Nagy | 2016-08-26 23:02:22 +0200 |
commit | 909ec36edf6206efac5d2b4bea32a019520087b7 (patch) | |
tree | 490694d1a3a3f656f97ec5c8112fa997b48d16aa | |
parent | 2e9483cf2e5937f03bc89f9366d3b84d1199237b (diff) | |
download | scummvm-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.cpp | 2 |
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; } } |