diff options
author | Henry Wilson <m3henry@googlemail.com> | 2019-02-12 22:59:12 +0000 |
---|---|---|
committer | PeterN <peter@fuzzle.org> | 2019-03-26 20:15:57 +0000 |
commit | 5795f66d2eebccbc8e04b80ebaf163f636479f9e (patch) | |
tree | 53bedfa6e40953f7aaeba3f7c2648e0839aef354 /src/station_gui.cpp | |
parent | b1f5119d3af2fb47a2f1c752d61a742f41076451 (diff) | |
download | openttd-5795f66d2eebccbc8e04b80ebaf163f636479f9e.tar.xz |
Codechange: Replaced SmallVector::Contains() with std::find() pattern
Diffstat (limited to 'src/station_gui.cpp')
-rw-r--r-- | src/station_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/station_gui.cpp b/src/station_gui.cpp index fddfe780d..36a58e62e 100644 --- a/src/station_gui.cpp +++ b/src/station_gui.cpp @@ -2150,7 +2150,7 @@ static bool AddNearbyStation(TileIndex tile, void *user_data) if (!T::IsValidID(sid)) return false; T *st = T::Get(sid); - if (st->owner != _local_company || _stations_nearby_list.Contains(sid)) return false; + if (st->owner != _local_company || std::find(_stations_nearby_list.begin(), _stations_nearby_list.end(), sid) != _stations_nearby_list.end()) return false; if (st->rect.BeforeAddRect(ctx->tile, ctx->w, ctx->h, StationRect::ADD_TEST).Succeeded()) { *_stations_nearby_list.Append() = sid; |