summaryrefslogtreecommitdiff
path: root/src/script
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2019-02-24 18:52:15 +0000
committerPeterN <peter@fuzzle.org>2019-03-09 16:33:47 +0000
commited6084523d546641d4ec9ff5f560387d7c40670f (patch)
treeec96379c0b76df7b6da28e4c33e16ed7d72eef3e /src/script
parent46aca9377b01a6626a972151e6fc4c62eec76ba7 (diff)
downloadopenttd-ed6084523d546641d4ec9ff5f560387d7c40670f.tar.xz
Codechange: Convert StationList from SmallVector to std::set.
Diffstat (limited to 'src/script')
-rw-r--r--src/script/api/script_industry.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/api/script_industry.cpp b/src/script/api/script_industry.cpp
index c536ec559..b9025307b 100644
--- a/src/script/api/script_industry.cpp
+++ b/src/script/api/script_industry.cpp
@@ -134,7 +134,7 @@
Industry *ind = ::Industry::Get(industry_id);
StationList stations;
::FindStationsAroundTiles(ind->location, &stations);
- return (int32)stations.Length();
+ return (int32)stations.size();
}
/* static */ int32 ScriptIndustry::GetDistanceManhattanToTile(IndustryID industry_id, TileIndex tile)