(svn r15067) -Fix [FS#2531]: Possible compiler bug, alleviated by using SmallVector instead of using std::set. SmallVector does everything needed anyway.

This commit is contained in:
peter1138
2009-01-13 18:18:53 +00:00
parent f293bff01b
commit afb94c252d
4 changed files with 13 additions and 15 deletions

View File

@@ -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)