From 9c59b711b7c1a8938c005cd135373d986a5600ad Mon Sep 17 00:00:00 2001 From: smatz Date: Sat, 7 Feb 2009 17:01:44 +0000 Subject: (svn r15401) -Fix [FS#2619](r15027): AI::Stop changed _current_company, but didn't restore its original value --- src/ai/ai_core.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/ai/ai_core.cpp') diff --git a/src/ai/ai_core.cpp b/src/ai/ai_core.cpp index e49a7dd4b..f4f703614 100644 --- a/src/ai/ai_core.cpp +++ b/src/ai/ai_core.cpp @@ -88,12 +88,15 @@ { if (_networking && !_network_server) return; + CompanyID old_company = _current_company; _current_company = company; Company *c = GetCompany(company); delete c->ai_instance; c->ai_instance = NULL; + _current_company = old_company; + InvalidateWindowData(WC_AI_DEBUG, 0, -1); } -- cgit v1.2.3-54-g00ecf