summaryrefslogtreecommitdiff
path: root/src/newgrf_house.cpp
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/newgrf_house.cpp
parent46aca9377b01a6626a972151e6fc4c62eec76ba7 (diff)
downloadopenttd-ed6084523d546641d4ec9ff5f560387d7c40670f.tar.xz
Codechange: Convert StationList from SmallVector to std::set.
Diffstat (limited to 'src/newgrf_house.cpp')
-rw-r--r--src/newgrf_house.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/newgrf_house.cpp b/src/newgrf_house.cpp
index 314f02b3d..e6abf0962 100644
--- a/src/newgrf_house.cpp
+++ b/src/newgrf_house.cpp
@@ -350,8 +350,7 @@ static uint32 GetDistanceFromNearbyHouse(uint8 parameter, TileIndex tile, HouseI
/* Collect acceptance stats. */
uint32 res = 0;
- for (Station * const * st_iter = sl->Begin(); st_iter != sl->End(); st_iter++) {
- const Station *st = *st_iter;
+ for (Station *st : *sl) {
if (HasBit(st->goods[cid].status, GoodsEntry::GES_EVER_ACCEPTED)) SetBit(res, 0);
if (HasBit(st->goods[cid].status, GoodsEntry::GES_LAST_MONTH)) SetBit(res, 1);
if (HasBit(st->goods[cid].status, GoodsEntry::GES_CURRENT_MONTH)) SetBit(res, 2);