(svn r19526) -Fix (r19395): clients would crash while connecting to a server with AIs

This commit is contained in:
rubidium 2010-03-30 22:37:45 +00:00
parent 02fb92dc83
commit f97a41040f

View File

@ -1028,6 +1028,9 @@ void InitializeAIGui()
/** Open the AI debug window if one of the AI scripts has crashed. */
void ShowAIDebugWindowIfAIError()
{
/* Network clients can't debug AIs. */
if (_networking && !_network_server) return;
Company *c;
FOR_ALL_COMPANIES(c) {
if (c->is_ai && c->ai_instance->IsDead()) {