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

pull/155/head
rubidium 14 years ago
parent 6b376f4e68
commit 84e1093c65

@ -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()) {

Loading…
Cancel
Save