mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-06 22:28:56 +00:00
(svn r19526) -Fix (r19395): clients would crash while connecting to a server with AIs
This commit is contained in:
parent
02fb92dc83
commit
f97a41040f
@ -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…
Reference in New Issue
Block a user