# HG changeset patch # User yexo # Date 2009-03-19 23:38:51 # Node ID 43e7a9e45599aa09c448b25550fe641936b3539a # Parent 5838126139f5258c4a91c009b9c3083e66425b25 (svn r15774) -Fix (r15708): Don't show the message about reporting an AI crash for the dummy AI. diff --git a/src/ai/ai_instance.cpp b/src/ai/ai_instance.cpp --- a/src/ai/ai_instance.cpp +++ b/src/ai/ai_instance.cpp @@ -255,7 +255,9 @@ void AIInstance::Died() this->engine = NULL; ShowAIDebugWindow(_current_company); - ShowErrorMessage(INVALID_STRING_ID, STR_AI_PLEASE_REPORT_CRASH, 0, 0); + if (strcmp(GetCompany(_current_company)->ai_info->GetMainScript(), "%_dummy") != 0) { + ShowErrorMessage(INVALID_STRING_ID, STR_AI_PLEASE_REPORT_CRASH, 0, 0); + } } void AIInstance::GameLoop()