diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/ai/ai_core.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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); } |