mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-22 20:21:26 +00:00
- de-init DoomStartupInfo on 'restart' ccmd so that the window title always contains the correct game information.
This commit is contained in:
parent
d16ad3dcb5
commit
d313ef4b61
1 changed files with 4 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue