diff options
author | Bendegúz Nagy | 2017-01-19 22:53:04 +0100 |
---|---|---|
committer | Bendegúz Nagy | 2017-01-19 22:53:04 +0100 |
commit | 0c428e4fd7abf9cd0b0570f004d6b7347027943a (patch) | |
tree | 1e3adb8d232886546f217c03f258df53bbc113fb | |
parent | a95b8f95dd1bcf8cc72e2a9ed3eac9e98e1430aa (diff) | |
download | scummvm-rg350-0c428e4fd7abf9cd0b0570f004d6b7347027943a.tar.gz scummvm-rg350-0c428e4fd7abf9cd0b0570f004d6b7347027943a.tar.bz2 scummvm-rg350-0c428e4fd7abf9cd0b0570f004d6b7347027943a.zip |
Fix regression introduced in 3ab3a85
-rw-r--r-- | engines/dm/dungeonman.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/dm/dungeonman.cpp b/engines/dm/dungeonman.cpp index 417f3e31e7..618c61a307 100644 --- a/engines/dm/dungeonman.cpp +++ b/engines/dm/dungeonman.cpp @@ -647,8 +647,8 @@ void DungeonMan::loadDungeonFile(Common::InSaveFile *file) { _dungeonMaps[i]._wallSet = (WallSet)((tmp >> 4) & 0xF); _dungeonMaps[i]._floorSet = (FloorSet)(tmp & 0xF); - if (!file) - delete dunDataStream; + //if (!file) + // delete dunDataStream; } // load column stuff thingy @@ -769,7 +769,7 @@ void DungeonMan::loadDungeonFile(Common::InSaveFile *file) { } if (!file) { // this means that we created a new MemoryReadStream - delete file; + delete dunDataStream; } // the deletion of the function parameter 'file' happens elsewhere } |