mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-26 05:51:20 +00:00
- Fixed: To prevent the pointer cleanup code from crashing numsectors has
to be set to 0 when the sectors array is deleted. SVN r64 (trunk)
This commit is contained in:
parent
9aae758ec5
commit
1e1db5dd0c
2 changed files with 3 additions and 0 deletions
|
@ -1,4 +1,6 @@
|
||||||
April 21, 2006 (Changes by Graf Zahl)
|
April 21, 2006 (Changes by Graf Zahl)
|
||||||
|
- Fixed: To prevent the pointer cleanup code from crashing numsectors has
|
||||||
|
to be set to 0 when the sectors array is deleted.
|
||||||
- Added Zloba's fix for Linux's I_FindFirst.
|
- Added Zloba's fix for Linux's I_FindFirst.
|
||||||
|
|
||||||
April 20, 2006 (Changes by Graf Zahl)
|
April 20, 2006 (Changes by Graf Zahl)
|
||||||
|
|
|
@ -2804,6 +2804,7 @@ void P_FreeLevelData ()
|
||||||
{
|
{
|
||||||
delete[] sectors;
|
delete[] sectors;
|
||||||
sectors = NULL;
|
sectors = NULL;
|
||||||
|
numsectors = 0; // needed for the pointer cleanup code
|
||||||
}
|
}
|
||||||
if (subsectors != NULL)
|
if (subsectors != NULL)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue