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