- fixed: The menu descriptors were not cleared on restart, leaving some menu data behind.

This commit is contained in:
Christoph Oelckers 2017-04-18 16:54:06 +02:00
parent 8180d34765
commit 42a34ddd58
2 changed files with 3 additions and 1 deletions

View file

@ -132,6 +132,7 @@ extern void M_SetDefaultMode ();
extern void G_NewInit ();
extern void SetupPlayerClasses ();
extern void HUD_InitHud();
void DeinitMenus();
const FIWADInfo *D_FindIWAD(TArray<FString> &wadfiles, const char *iwad, const char *basewad);
// PUBLIC FUNCTION PROTOTYPES ----------------------------------------------
@ -2736,6 +2737,7 @@ void D_DoomMain (void)
C_ClearAliases(); // CCMDs won't be reinitialized so these need to be deleted here
DestroyCVarsFlagged(CVAR_MOD); // Delete any cvar left by mods
FS_Close(); // destroy the global FraggleScript.
DeinitMenus();
GC::FullGC(); // clean up before taking down the object list.

View file

@ -137,7 +137,7 @@ DEFINE_ACTION_FUNCTION(FOptionValues, GetText)
}
static void DeinitMenus()
void DeinitMenus()
{
{
FOptionMap::Iterator it(OptionValues);