From 0c428e4fd7abf9cd0b0570f004d6b7347027943a Mon Sep 17 00:00:00 2001 From: Bendegúz Nagy Date: Thu, 19 Jan 2017 22:53:04 +0100 Subject: Fix regression introduced in 3ab3a85 --- engines/dm/dungeonman.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'engines/dm') 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 } -- cgit v1.2.3