diff options
author | rubidium <rubidium@openttd.org> | 2009-02-20 21:05:27 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-02-20 21:05:27 +0000 |
commit | 1f028894b54aac48fc99a0e5b0e14eeb19e0a5a1 (patch) | |
tree | 5fc194e52b607fa1388c8930460609e4d8cdd794 | |
parent | 310446d44859060f64a8435069406d39f9dd54b0 (diff) | |
download | openttd-1f028894b54aac48fc99a0e5b0e14eeb19e0a5a1.tar.xz |
(svn r15532) -Fix (r15525): don't try to load (and forget) AI data from a non-existing AI when joining a server. In other words: you can join network servers again.
-rw-r--r-- | src/saveload/ai_sl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/saveload/ai_sl.cpp b/src/saveload/ai_sl.cpp index b5ee5da64..e963bd03b 100644 --- a/src/saveload/ai_sl.cpp +++ b/src/saveload/ai_sl.cpp @@ -59,7 +59,7 @@ static void Load_AIPL() SlObject(NULL, _ai_company); if (_networking && !_network_server) { - AIInstance::LoadEmpty(); + if (IsValidCompanyID(index) && !IsHumanCompany(index)) AIInstance::LoadEmpty(); continue; } |