1
0
Fork 0

Fix: Crash when exiting game with highscore window open.

pull/13118/head
Peter Nelson 2024-11-24 07:09:48 +00:00
parent 1f18894408
commit db0b6619f0
No known key found for this signature in database
GPG Key ID: 8EF8F0A467DF75ED
1 changed files with 1 additions and 1 deletions

View File

@ -175,7 +175,7 @@ struct HighScoreWindow : EndGameHighScoreBaseWindow {
void Close([[maybe_unused]] int data = 0) override 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 if (!_networking && !this->game_paused_by_player) Command<CMD_PAUSE>::Post(PM_PAUSED_NORMAL, false); // unpause