(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 15 years ago
parent 043c3c8b06
commit d67810442d

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

Loading…
Cancel
Save