From 02bda12599ced659e5e3ff9404ff21f0ca718cd1 Mon Sep 17 00:00:00 2001 From: peter1138 Date: Tue, 13 Jan 2009 18:18:53 +0000 Subject: (svn r15067) -Fix [FS#2531]: Possible compiler bug, alleviated by using SmallVector instead of using std::set. SmallVector does everything needed anyway. --- src/ai/api/ai_industry.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ai/api') 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) -- cgit v1.2.3-70-g09d2