Changeset - r26776:34e996be2d9d
[Not reviewed]
master
0 1 0
Rubidium - 17 months ago 2023-01-17 21:24:34
rubidium@openttd.org
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.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/highscore_gui.cpp
Show inline comments
 
@@ -126,7 +126,7 @@ struct EndGameWindow : EndGameHighScoreB
 
	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();
 
	}
 

	
0 comments (0 inline, 0 general)