mirror of https://github.com/OpenTTD/OpenTTD
(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.
parent
7dc607b2d1
commit
c4fb879561
|
@ -59,7 +59,7 @@ static void Load_AIPL()
|
||||||
SlObject(NULL, _ai_company);
|
SlObject(NULL, _ai_company);
|
||||||
|
|
||||||
if (_networking && !_network_server) {
|
if (_networking && !_network_server) {
|
||||||
AIInstance::LoadEmpty();
|
if (IsValidCompanyID(index) && !IsHumanCompany(index)) AIInstance::LoadEmpty();
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue