mirror of
https://github.com/OpenTTD/OpenTTD
synced 2025-12-23 21:22:46 +01:00
Fix: Crash when exiting game with highscore window open. (#13118)
This commit is contained in:
@@ -175,7 +175,7 @@ struct HighScoreWindow : EndGameHighScoreBaseWindow {
|
||||
|
||||
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user