- on second thought, better call M_ClearMenus instead of calling Destroy directly.

This commit is contained in:
Christoph Oelckers 2019-06-10 12:15:52 +02:00 committed by Rachael Alexanderson
parent c6f290dcf8
commit 54c4c49d5a

View file

@ -136,7 +136,7 @@ DEFINE_ACTION_FUNCTION(FOptionValues, GetText)
void DeinitMenus() void DeinitMenus()
{ {
if (CurrentMenu) CurrentMenu->Destroy(); M_ClearMenus();
{ {
FOptionMap::Iterator it(OptionValues); FOptionMap::Iterator it(OptionValues);
@ -150,7 +150,6 @@ void DeinitMenus()
} }
MenuDescriptors.Clear(); MenuDescriptors.Clear();
OptionValues.Clear(); OptionValues.Clear();
CurrentMenu = nullptr;
savegameManager.ClearSaveGames(); savegameManager.ClearSaveGames();
} }