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

pull/155/head
yexo 16 years ago
parent 043c3c8b06
commit d67810442d

@ -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();

Loading…
Cancel
Save