aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBendegúz Nagy2016-06-14 16:49:04 +0200
committerBendegúz Nagy2016-08-26 23:02:22 +0200
commit3ca7622a6ca4563f7c906013d59f9213a55f4c1b (patch)
tree039f716f888bd030356a94abc9702b356d28dda6
parent6ffca3a7dbf06227cadb791ca73ca99158f87ce0 (diff)
downloadscummvm-rg350-3ca7622a6ca4563f7c906013d59f9213a55f4c1b.tar.gz
scummvm-rg350-3ca7622a6ca4563f7c906013d59f9213a55f4c1b.tar.bz2
scummvm-rg350-3ca7622a6ca4563f7c906013d59f9213a55f4c1b.zip
DM: Fix wrong MemoryReadStream size when loading dungeon.dat
-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 056364905e..dd73e24a81 100644
--- a/engines/dm/dungeonman.cpp
+++ b/engines/dm/dungeonman.cpp
@@ -230,7 +230,7 @@ void DungeonMan::loadDungeonFile() {
if (_messages.newGame)
decompressDungeonFile();
- Common::MemoryReadStream dunDataStream(_rawDunFileData, _fileHeader.rawMapDataSize, DisposeAfterUse::NO);
+ Common::MemoryReadStream dunDataStream(_rawDunFileData, _rawDunFileDataSize, DisposeAfterUse::NO);
// initialize _fileHeader
_fileHeader.dungeonId = _fileHeader.ornamentRandomSeed = dunDataStream.readUint16BE();