From 583cd489b13e8b42aa2fffc8c3c8366a79fec783 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(); }