diff options
author | smatz <smatz@openttd.org> | 2009-05-22 15:23:47 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2009-05-22 15:23:47 +0000 |
commit | 10d1ef5447b94d17024dc0f4bdd1b7b017431a23 (patch) | |
tree | a9563d19933124547ccd3d6c0e53c44876bdc144 /src/ai/api/ai_town.cpp | |
parent | 62a7948af0ca9eb3b190a54918201e1075edcbbc (diff) | |
download | openttd-10d1ef5447b94d17024dc0f4bdd1b7b017431a23.tar.xz |
(svn r16379) -Codechange: remove GetNumTowns(), GetNumIndustries() and GetActiveCompanyCount(), use PoolItem::GetNumItems() instead
Diffstat (limited to 'src/ai/api/ai_town.cpp')
-rw-r--r-- | src/ai/api/ai_town.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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) |