From 203cd6c2ddf4fe6853d0a72d280640e10579918c Mon Sep 17 00:00:00 2001 From: yexo Date: Thu, 14 May 2009 18:09:50 +0000 Subject: (svn r16306) -Fix [FS#2901] (r15027): Close all windows before unloading the AI system as closing the content-download window will rescan for AIs --- src/openttd.cpp | 6 +++--- 1 file 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(); -- cgit v1.2.3-54-g00ecf