From 0b0b4f50c415c611614bb23090a4abc5229d98e5 Mon Sep 17 00:00:00 2001 From: Peter Nelson Date: Sun, 24 Nov 2024 10:36:21 +0000 Subject: [PATCH] Fix: Crash when exiting game with highscore window open. (#13118) --- 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