Changeset - r11901:0fcd189c6880
[Not reviewed]
master
0 1 0
yexo - 15 years ago 2009-05-14 18:09:50
yexo@openttd.org
(svn r16306) -Fix [FS#2901] (r15027): Close all windows before unloading the AI system as closing the content-download window will rescan for AIs
1 file changed with 3 insertions and 3 deletions:
0 comments (0 inline, 0 general)
src/openttd.cpp
Show inline comments
 
@@ -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();
 

	
0 comments (0 inline, 0 general)