(svn r16306) -Fix [FS#2901] (r15027): Close all windows before unloading the AI system as closing the content-download window will rescan for AIs

This commit is contained in:
yexo 2009-05-14 18:09:50 +00:00
parent a5d6e23e9d
commit 203cd6c2dd
1 changed files with 3 additions and 3 deletions

View File

@ -300,9 +300,6 @@ static void InitializeDynamicVariables()
*/ */
static void ShutdownGame() static void ShutdownGame()
{ {
/* stop the AI */
AI::Uninitialize(false);
IConsoleFree(); IConsoleFree();
if (_network_available) NetworkShutDown(); // Shut down the network and close any open connections if (_network_available) NetworkShutDown(); // Shut down the network and close any open connections
@ -311,6 +308,9 @@ static void ShutdownGame()
UnInitWindowSystem(); UnInitWindowSystem();
/* stop the AI */
AI::Uninitialize(false);
/* Uninitialize airport state machines */ /* Uninitialize airport state machines */
UnInitializeAirports(); UnInitializeAirports();