From a7feb6f7e007ec4cbb4f2c231f79b216aaa28725 Mon Sep 17 00:00:00 2001 From: Joonas Rikkonen Date: Mon, 15 Apr 2019 11:58:38 +0300 Subject: [PATCH] (a6a0c23a1) Close all message boxes when clicking the quit button in the pause menu. Fixes character wizard not closing if it's open when quitting to the main menu. --- Barotrauma/BarotraumaClient/Source/GUI/GUI.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Barotrauma/BarotraumaClient/Source/GUI/GUI.cs b/Barotrauma/BarotraumaClient/Source/GUI/GUI.cs index 87ccc8154..53457108e 100644 --- a/Barotrauma/BarotraumaClient/Source/GUI/GUI.cs +++ b/Barotrauma/BarotraumaClient/Source/GUI/GUI.cs @@ -1559,6 +1559,8 @@ namespace Barotrauma } GameMain.GameSession = null; } + + GUIMessageBox.CloseAll(); GameMain.MainMenuScreen.Select();