Skip to content
Permalink
Browse files

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

…roy directly.
  • Loading branch information...
coelckers authored and madame-rachelle committed Jun 10, 2019
1 parent c6f290d commit 54c4c49d5a4ac6e2b02eb0511184ecb0a722b0e9
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 54c4c49

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