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 | c4fb8795617ee382ba61dacef0f939edfdc4819c (patch) | |
tree | 5fc194e52b607fa1388c8930460609e4d8cdd794 /src | |
parent | 7dc607b2d1cb042f6eb0302cd7408de1fce5dd88 (diff) | |
download | openttd-c4fb8795617ee382ba61dacef0f939edfdc4819c.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.
Diffstat (limited to 'src')
-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; } |