mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-12 02:19:41 +00:00
Fix: Crash when exiting game with highscore window open. (#13118)
This commit is contained in:
parent
fa1849b855
commit
0b0b4f50c4
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user