mirror of
https://github.com/ZDoom/qzdoom-gpl.git
synced 2025-01-19 05:30:49 +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 (map->Encrypted)
|
||||||
{ // If it's encrypted, then it's a Blood file, presumably a map.
|
{ // 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))
|
if (!P_IsBuildMap(map))
|
||||||
{
|
{
|
||||||
delete map;
|
delete map;
|
||||||
|
|
Loading…
Reference in a new issue