diff --git a/src/openttd.cpp b/src/openttd.cpp index 701db0dc61..1aed1c566f 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();