Skip to content
Permalink
Browse files

- on second thought, better call M_ClearMenus instead of calling Dest…

…roy directly.
  • Loading branch information...
coelckers committed Jun 10, 2019
1 parent 4c622ba commit 583cd489b13e8b42aa2fffc8c3c8366a79fec783
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/menu/menudef.cpp
@@ -136,7 +136,7 @@ DEFINE_ACTION_FUNCTION(FOptionValues, GetText)

void DeinitMenus()
{
if (CurrentMenu) CurrentMenu->Destroy();
M_ClearMenus();
{
FOptionMap::Iterator it(OptionValues);

@@ -150,7 +150,6 @@ void DeinitMenus()
}
MenuDescriptors.Clear();
OptionValues.Clear();
CurrentMenu = nullptr;
savegameManager.ClearSaveGames();
}

0 comments on commit 583cd48

Please sign in to comment.
You can’t perform that action at this time.