diff --git a/src/menu/menudef.cpp b/src/menu/menudef.cpp index 15205c132..25d138991 100644 --- a/src/menu/menudef.cpp +++ b/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(); }