Fix: Crash when exiting game with highscore window open. (#13118)

This commit is contained in:
Peter Nelson 2024-11-24 10:36:21 +00:00 committed by GitHub
parent fa1849b855
commit 0b0b4f50c4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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<CMD_PAUSE>::Post(PM_PAUSED_NORMAL, false); // unpause