From 54c4c49d5a4ac6e2b02eb0511184ecb0a722b0e9 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 10 Jun 2019 12:15:52 +0200 Subject: [PATCH] - on second thought, better call M_ClearMenus instead of calling Destroy directly. --- src/menu/menudef.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/menu/menudef.cpp b/src/menu/menudef.cpp index 15205c1323..25d138991c 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(); }