(svn r16559) -Codechange: introduce Company::IsValidAiID() and Company::IsValidHumanID(), don't use IsHumanCompany() where possible
This commit is contained in:
@@ -227,7 +227,7 @@ static void SaveLoad_PLYR(Company *c)
|
||||
SlObject(c, _company_desc);
|
||||
|
||||
/* Keep backwards compatible for savegames, so load the old AI block */
|
||||
if (CheckSavegameVersion(107) && !IsHumanCompany(c->index)) {
|
||||
if (CheckSavegameVersion(107) && c->is_ai) {
|
||||
CompanyOldAI old_ai;
|
||||
char nothing;
|
||||
|
||||
|
Reference in New Issue
Block a user