From ee8b03e8da5867c52473367d4a9f5ae80e5dae0e Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Fri, 16 Jun 2023 19:41:26 +0100 Subject: [PATCH] Fix: Crash when failing to load a game into a dedicated server at startup (#11021) Using the -g switch --- src/openttd.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/openttd.cpp b/src/openttd.cpp index 22c4f96cdf..973ed8e16d 100644 --- a/src/openttd.cpp +++ b/src/openttd.cpp @@ -1511,6 +1511,7 @@ void GameLoop() if (_switch_mode != SM_NONE && !HasModalProgress()) { SwitchToMode(_switch_mode); _switch_mode = SM_NONE; + if (_exit_game) return; } IncreaseSpriteLRU();