diff options
author | peter1138 <peter1138@openttd.org> | 2009-01-13 18:18:53 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2009-01-13 18:18:53 +0000 |
commit | afb94c252df09f2f86186fbf6dcdf01ea2d55b12 (patch) | |
tree | ae7816db55022acd80a77f5e646ba906e2ee9762 /src/ai/api | |
parent | f293bff01b54d17abd57663323a2d7f588fbea01 (diff) | |
download | openttd-afb94c252df09f2f86186fbf6dcdf01ea2d55b12.tar.xz |
(svn r15067) -Fix [FS#2531]: Possible compiler bug, alleviated by using SmallVector instead of using std::set. SmallVector does everything needed anyway.
Diffstat (limited to 'src/ai/api')
-rw-r--r-- | src/ai/api/ai_industry.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ai/api/ai_industry.cpp b/src/ai/api/ai_industry.cpp index 64687af51..9a09d5ecd 100644 --- a/src/ai/api/ai_industry.cpp +++ b/src/ai/api/ai_industry.cpp @@ -123,7 +123,7 @@ if (!IsValidIndustry(industry_id)) return -1; Industry *ind = ::GetIndustry(industry_id); - return (int32)::FindStationsAroundTiles(ind->xy, ind->width, ind->height).size(); + return (int32)::FindStationsAroundTiles(ind->xy, ind->width, ind->height).Length(); } /* static */ int32 AIIndustry::GetDistanceManhattanToTile(IndustryID industry_id, TileIndex tile) |