1
0
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:
Peter Nelson
2024-11-24 10:36:21 +00:00
committed by GitHub
parent fa1849b855
commit 0b0b4f50c4

View File

@@ -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