- set all 'num' variables to 0 in P_FreeLevelData so that any code using them won't try to read the deleted map data.

SVN r3044 (trunk)
This commit is contained in:
Christoph Oelckers 2010-12-15 23:10:08 +00:00
commit e33d1a989f
2 changed files with 9 additions and 2 deletions

View file

@ -2317,6 +2317,8 @@ void D_DoomMain (void)
}
else
{
// let the renderer reinitialize some stuff if needed
screen->GameRestart();
// These calls from inside V_Init2 are still necessary
C_NewModeAdjust();
M_InitVideoModesMenu();
@ -2331,7 +2333,6 @@ void D_DoomMain (void)
catch (CRestartException &)
{
// Music and sound should be stopped first
screen->GameRestart();
S_StopMusic(true);
S_StopAllChannels ();