mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-14 08:31:23 +00:00
- Fixed: When the game nodes were the same as the render nodes, their pointers would not be NULLed.
SVN r2676 (trunk)
This commit is contained in:
parent
81e21b0688
commit
092cbfd55b
1 changed files with 8 additions and 10 deletions
|
@ -3370,17 +3370,13 @@ void P_FreeLevelData ()
|
||||||
sectors = NULL;
|
sectors = NULL;
|
||||||
numsectors = 0; // needed for the pointer cleanup code
|
numsectors = 0; // needed for the pointer cleanup code
|
||||||
}
|
}
|
||||||
if (gamenodes && gamenodes!=nodes)
|
if (gamenodes != NULL && gamenodes != nodes)
|
||||||
{
|
{
|
||||||
delete [] gamenodes;
|
delete[] gamenodes;
|
||||||
gamenodes = NULL;
|
|
||||||
numgamenodes = 0;
|
|
||||||
}
|
}
|
||||||
if (gamesubsectors && gamesubsectors!=subsectors)
|
if (gamesubsectors != NULL && gamesubsectors != subsectors)
|
||||||
{
|
{
|
||||||
delete [] gamesubsectors;
|
delete[] gamesubsectors;
|
||||||
gamesubsectors = NULL;
|
|
||||||
numgamesubsectors = 0;
|
|
||||||
}
|
}
|
||||||
if (subsectors != NULL)
|
if (subsectors != NULL)
|
||||||
{
|
{
|
||||||
|
@ -3392,13 +3388,15 @@ void P_FreeLevelData ()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
delete[] subsectors;
|
delete[] subsectors;
|
||||||
subsectors = NULL;
|
|
||||||
}
|
}
|
||||||
if (nodes != NULL)
|
if (nodes != NULL)
|
||||||
{
|
{
|
||||||
delete[] nodes;
|
delete[] nodes;
|
||||||
nodes = NULL;
|
|
||||||
}
|
}
|
||||||
|
subsectors = gamesubsectors = NULL;
|
||||||
|
numsubsectors = numgamesubsectors = 0;
|
||||||
|
nodes = gamenodes = NULL;
|
||||||
|
numnodes = numgamenodes = 0;
|
||||||
if (lines != NULL)
|
if (lines != NULL)
|
||||||
{
|
{
|
||||||
delete[] lines;
|
delete[] lines;
|
||||||
|
|
Loading…
Reference in a new issue