- 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:
parent
419a998bdf
commit
e33d1a989f
2 changed files with 9 additions and 2 deletions
|
|
@ -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 ();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue