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.
pull/477/head
Rubidium 1 year ago committed by rubidium42
parent dcc06f44bc
commit 8d8519c3f6

@ -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();
}

Loading…
Cancel
Save