1
0
Fork 0

Fix: Crash when exiting game with end game window open. (#12962)

Caused by the end game window opening the highscore window on close, which `UnInitWindowSystem()` does not expect.
pull/12964/head
Peter Nelson 2024-09-23 17:58:44 +01:00 committed by GitHub
parent 856ee2aaca
commit f149d84d4c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -128,7 +128,7 @@ struct EndGameWindow : EndGameHighScoreBaseWindow {
void Close([[maybe_unused]] int data = 0) override
{
if (!_networking) Command<CMD_PAUSE>::Post(PM_PAUSED_NORMAL, false); // unpause
if (_game_mode != GM_MENU) ShowHighscoreTable(this->window_number, this->rank);
if (_game_mode != GM_MENU && !_exit_game) ShowHighscoreTable(this->window_number, this->rank);
this->EndGameHighScoreBaseWindow::Close();
}