summaryrefslogtreecommitdiff
path: root/src/openttd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/openttd.cpp')
-rw-r--r--src/openttd.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp
index 701db0dc6..1aed1c566 100644
--- a/src/openttd.cpp
+++ b/src/openttd.cpp
@@ -300,9 +300,6 @@ static void InitializeDynamicVariables()
*/
static void ShutdownGame()
{
- /* stop the AI */
- AI::Uninitialize(false);
-
IConsoleFree();
if (_network_available) NetworkShutDown(); // Shut down the network and close any open connections
@@ -311,6 +308,9 @@ static void ShutdownGame()
UnInitWindowSystem();
+ /* stop the AI */
+ AI::Uninitialize(false);
+
/* Uninitialize airport state machines */
UnInitializeAirports();