diff options
author | rubidium <rubidium@openttd.org> | 2009-04-25 22:40:24 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-04-25 22:40:24 +0000 |
commit | d8bc98d5de40fe7549aa5815d71ddd00bf4ce7c5 (patch) | |
tree | 5f81b995ff244f52527fd5a68d137e8b4da4a420 /src/ai | |
parent | 25ecace01b1ead5ccf7b58f9fd8cf68139270dea (diff) | |
download | openttd-d8bc98d5de40fe7549aa5815d71ddd00bf4ce7c5.tar.xz |
(svn r16149) -Fix [FS#2860]: when there's no AI and an AI is started... *boom*
Diffstat (limited to 'src/ai')
-rw-r--r-- | src/ai/ai_instance.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ai/ai_instance.cpp b/src/ai/ai_instance.cpp index dcd68410b..8bd6db7f6 100644 --- a/src/ai/ai_instance.cpp +++ b/src/ai/ai_instance.cpp @@ -258,6 +258,7 @@ void AIInstance::Died() ShowAIDebugWindow(_current_company); if (strcmp(GetCompany(_current_company)->ai_info->GetMainScript(), "%_dummy") != 0) { ShowErrorMessage(INVALID_STRING_ID, STR_AI_PLEASE_REPORT_CRASH, 0, 0); + return; } const AIInfo *info = AIConfig::GetConfig(_current_company)->GetInfo(); |