mirror of https://github.com/OpenTTD/OpenTTD
Fix: Crash when failing to load a game into a dedicated server at startup (#11021)
Using the -g switchpull/11023/head
parent
ed06c6bdcf
commit
ee8b03e8da
|
@ -1511,6 +1511,7 @@ void GameLoop()
|
||||||
if (_switch_mode != SM_NONE && !HasModalProgress()) {
|
if (_switch_mode != SM_NONE && !HasModalProgress()) {
|
||||||
SwitchToMode(_switch_mode);
|
SwitchToMode(_switch_mode);
|
||||||
_switch_mode = SM_NONE;
|
_switch_mode = SM_NONE;
|
||||||
|
if (_exit_game) return;
|
||||||
}
|
}
|
||||||
|
|
||||||
IncreaseSpriteLRU();
|
IncreaseSpriteLRU();
|
||||||
|
|
Loading…
Reference in New Issue