mirror of https://github.com/OpenTTD/OpenTTD
Fix: Crash when exiting game with highscore window open.
parent
1f18894408
commit
db0b6619f0
|
@ -175,7 +175,7 @@ struct HighScoreWindow : EndGameHighScoreBaseWindow {
|
||||||
|
|
||||||
void Close([[maybe_unused]] int data = 0) override
|
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
|
if (!_networking && !this->game_paused_by_player) Command<CMD_PAUSE>::Post(PM_PAUSED_NORMAL, false); // unpause
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue