mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-24 20:54:08 +01:00
(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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user