mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-11 15:21:51 +00:00
Don't reopen the reader for encrypted maps
- Fixed: Memory leak when loading Blood maps.
This commit is contained in:
parent
02e7c56c82
commit
00854dd09e
1 changed files with 0 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue