Don't reopen the reader for encrypted maps

- Fixed: Memory leak when loading Blood maps.
This commit is contained in:
Randy Heit 2014-07-29 20:42:17 -05:00
parent 02e7c56c82
commit 00854dd09e

View file

@ -312,7 +312,6 @@ MapData *P_OpenMapData(const char * mapname, bool justcheck)
if (map->Encrypted)
{ // If it's encrypted, then it's a Blood file, presumably a map.
map->MapLumps[0].Reader = map->file = Wads.ReopenLumpNum(lump_name);
if (!P_IsBuildMap(map))
{
delete map;