summaryrefslogtreecommitdiff
path: root/src/ai/api
diff options
context:
space:
mode:
Diffstat (limited to 'src/ai/api')
-rw-r--r--src/ai/api/ai_company.cpp6
-rw-r--r--src/ai/api/ai_group.cpp2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/ai/api/ai_company.cpp b/src/ai/api/ai_company.cpp
index 32e13caef..89ad2d728 100644
--- a/src/ai/api/ai_company.cpp
+++ b/src/ai/api/ai_company.cpp
@@ -156,7 +156,7 @@
company = ResolveCompanyID(company);
if (company == COMPANY_INVALID) return false;
- return ::GetCompany((CompanyID)company)->engine_renew;
+ return ::GetCompany((CompanyID)company)->settings.engine_renew;
}
/* static */ bool AICompany::SetAutoRenewMonths(int16 months)
@@ -169,7 +169,7 @@
company = ResolveCompanyID(company);
if (company == COMPANY_INVALID) return 0;
- return ::GetCompany((CompanyID)company)->engine_renew_months;
+ return ::GetCompany((CompanyID)company)->settings.engine_renew_months;
}
/* static */ bool AICompany::SetAutoRenewMoney(uint32 money)
@@ -182,5 +182,5 @@
company = ResolveCompanyID(company);
if (company == COMPANY_INVALID) return 0;
- return ::GetCompany((CompanyID)company)->engine_renew_money;
+ return ::GetCompany((CompanyID)company)->settings.engine_renew_money;
}
diff --git a/src/ai/api/ai_group.cpp b/src/ai/api/ai_group.cpp
index 23846d815..71df52a43 100644
--- a/src/ai/api/ai_group.cpp
+++ b/src/ai/api/ai_group.cpp
@@ -100,7 +100,7 @@
/* static */ bool AIGroup::HasWagonRemoval()
{
- return ::GetCompany(_current_company)->renew_keep_length;
+ return ::GetCompany(_current_company)->settings.renew_keep_length;
}
/* static */ bool AIGroup::SetAutoReplace(GroupID group_id, EngineID engine_id_old, EngineID engine_id_new)