- de-init DoomStartupInfo on 'restart' ccmd so that the window title always contains the correct game information.

This commit is contained in:
Rachael Alexanderson 2017-10-31 20:00:58 -04:00
parent d16ad3dcb5
commit d313ef4b61
1 changed files with 4 additions and 0 deletions

View File

@ -2777,6 +2777,10 @@ void D_DoomMain (void)
FS_Close(); // destroy the global FraggleScript.
DeinitMenus();
// delete DoomStartupInfo data
DoomStartupInfo.Name = (const char*)0;
DoomStartupInfo.BkColor = DoomStartupInfo.FgColor = DoomStartupInfo.Type = 0;
GC::FullGC(); // clean up before taking down the object list.
// Delete the reference to the VM functions here which were deleted and will be recreated after the restart.