diff options
Diffstat (limited to 'src/ai')
-rw-r--r-- | src/ai/api/ai_industry.cpp | 2 | ||||
-rw-r--r-- | src/ai/api/ai_sign.cpp | 2 | ||||
-rw-r--r-- | src/ai/api/ai_town.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/ai/api/ai_industry.cpp b/src/ai/api/ai_industry.cpp index 5b7766fa2..005311e19 100644 --- a/src/ai/api/ai_industry.cpp +++ b/src/ai/api/ai_industry.cpp @@ -13,7 +13,7 @@ /* static */ int32 AIIndustry::GetIndustryCount() { - return ::GetNumIndustries(); + return (int32)::Industry::GetNumItems(); } /* static */ bool AIIndustry::IsValidIndustry(IndustryID industry_id) diff --git a/src/ai/api/ai_sign.cpp b/src/ai/api/ai_sign.cpp index 63bce8fdf..dd164c6ca 100644 --- a/src/ai/api/ai_sign.cpp +++ b/src/ai/api/ai_sign.cpp @@ -15,7 +15,7 @@ /* static */ SignID AISign::GetMaxSignID() { - return ::Sign::GetPoolSize() - 1; + return (SignID)::Sign::GetNumItems(); } /* static */ bool AISign::IsValidSign(SignID sign_id) diff --git a/src/ai/api/ai_town.cpp b/src/ai/api/ai_town.cpp index e49c1a36a..cd75996f9 100644 --- a/src/ai/api/ai_town.cpp +++ b/src/ai/api/ai_town.cpp @@ -16,7 +16,7 @@ /* static */ int32 AITown::GetTownCount() { - return ::GetNumTowns(); + return (int32)::Town::GetNumItems(); } /* static */ bool AITown::IsValidTown(TownID town_id) |