summaryrefslogtreecommitdiff
path: root/src/newgrf_engine.cpp
diff options
context:
space:
mode:
authorHenry Wilson <m3henry@googlemail.com>2019-02-20 19:27:10 +0000
committerPeterN <peter@fuzzle.org>2019-03-26 20:15:57 +0000
commit2bc2de9034d3b75a253b849cf7a703b1a503e200 (patch)
tree39f3a8e94a6f993f20dbbf027b6cdd684ab4ce4c /src/newgrf_engine.cpp
parente0c58bf5ee0f3f4d0563a04de315c09b37f74c6e (diff)
downloadopenttd-2bc2de9034d3b75a253b849cf7a703b1a503e200.tar.xz
Codechange: Replaced SmallVector::Find() with std::find()
Diffstat (limited to 'src/newgrf_engine.cpp')
-rw-r--r--src/newgrf_engine.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/newgrf_engine.cpp b/src/newgrf_engine.cpp
index b2dd4d1a3..7a0bb04f3 100644
--- a/src/newgrf_engine.cpp
+++ b/src/newgrf_engine.cpp
@@ -1245,8 +1245,8 @@ void CommitVehicleListOrderChanges()
EngineID target = _engine_mngr.GetID(id_source->type, local_target, id_source->grfid);
if (target == INVALID_ENGINE) continue;
- int source_index = ordering.FindIndex(source);
- int target_index = ordering.FindIndex(target);
+ int source_index = find_index(ordering, source);
+ int target_index = find_index(ordering, target);
assert(source_index >= 0 && target_index >= 0);
assert(source_index != target_index);