mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-07 23:10:04 +00:00
(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.
This commit is contained in:
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
Block a user