From db0b6619f0de5d41f520f1dab1e025985486796d Mon Sep 17 00:00:00 2001 From: Peter Nelson Date: Sun, 24 Nov 2024 07:09:48 +0000 Subject: [PATCH] Fix: Crash when exiting game with highscore window open. --- src/highscore_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/highscore_gui.cpp b/src/highscore_gui.cpp index 6d912c7cf5..ffe62cb978 100644 --- a/src/highscore_gui.cpp +++ b/src/highscore_gui.cpp @@ -175,7 +175,7 @@ struct HighScoreWindow : EndGameHighScoreBaseWindow { void Close([[maybe_unused]] int data = 0) override { - if (_game_mode != GM_MENU) ShowVitalWindows(); + if (_game_mode != GM_MENU && !_exit_game) ShowVitalWindows(); if (!_networking && !this->game_paused_by_player) Command::Post(PM_PAUSED_NORMAL, false); // unpause