- 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:
Christoph Oelckers 2006-04-23 00:03:32 +00:00
parent 9aae758ec5
commit 1e1db5dd0c
2 changed files with 3 additions and 0 deletions

View file

@ -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)

View file

@ -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)
{ {