From 909ec36edf6206efac5d2b4bea32a019520087b7 Mon Sep 17 00:00:00 2001 From: WinterGrascph Date: Tue, 17 May 2016 22:14:34 +0200 Subject: DM: Fix loading map data in loadDungeonFile(..) --- engines/dm/dungeonman.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } } -- cgit v1.2.3