Fix #10368, Fix 994bf19: server restarting game caused clients to hit assertion

Upon closing the EndGameWindow, triggered from UnInitWindowSystem, the
HighScoreWindow would be opened and _z_windows would not be empty.
This commit is contained in:
Rubidium 2023-01-17 22:24:34 +01:00 committed by rubidium42
parent dcc06f44bc
commit 8d8519c3f6
1 changed files with 1 additions and 1 deletions

View File

@ -126,7 +126,7 @@ struct EndGameWindow : EndGameHighScoreBaseWindow {
void Close() override
{
if (!_networking) Command<CMD_PAUSE>::Post(PM_PAUSED_NORMAL, false); // unpause
ShowHighscoreTable(this->window_number, this->rank);
if (_game_mode != GM_MENU) ShowHighscoreTable(this->window_number, this->rank);
this->EndGameHighScoreBaseWindow::Close();
}