mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-09 15:41:15 +00:00
(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:
parent
a5d6e23e9d
commit
203cd6c2dd
@ -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…
Reference in New Issue
Block a user