diff --git a/docs/rh-log.txt b/docs/rh-log.txt index f59a5f104..401f9899d 100644 --- a/docs/rh-log.txt +++ b/docs/rh-log.txt @@ -1,4 +1,6 @@ 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. April 20, 2006 (Changes by Graf Zahl) diff --git a/src/p_setup.cpp b/src/p_setup.cpp index 932ebb510..32627fe1c 100644 --- a/src/p_setup.cpp +++ b/src/p_setup.cpp @@ -2804,6 +2804,7 @@ void P_FreeLevelData () { delete[] sectors; sectors = NULL; + numsectors = 0; // needed for the pointer cleanup code } if (subsectors != NULL) {