From 27b831935f5a20ad4e4095f8807e74d558326f27 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 25 Apr 2009 22:40:24 +0000 Subject: [PATCH] (svn r16149) -Fix [FS#2860]: when there's no AI and an AI is started... *boom* --- src/ai/ai_instance.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ai/ai_instance.cpp b/src/ai/ai_instance.cpp index dcd68410b7..8bd6db7f63 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();