diff options
author | Henry Wilson <m3henry@googlemail.com> | 2019-02-20 19:27:10 +0000 |
---|---|---|
committer | PeterN <peter@fuzzle.org> | 2019-03-26 20:15:57 +0000 |
commit | 2bc2de9034d3b75a253b849cf7a703b1a503e200 (patch) | |
tree | 39f3a8e94a6f993f20dbbf027b6cdd684ab4ce4c /src/newgrf.cpp | |
parent | e0c58bf5ee0f3f4d0563a04de315c09b37f74c6e (diff) | |
download | openttd-2bc2de9034d3b75a253b849cf7a703b1a503e200.tar.xz |
Codechange: Replaced SmallVector::Find() with std::find()
Diffstat (limited to 'src/newgrf.cpp')
-rw-r--r-- | src/newgrf.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp index 63296593d..36a13aaaa 100644 --- a/src/newgrf.cpp +++ b/src/newgrf.cpp @@ -8383,8 +8383,8 @@ static void BuildCargoTranslationMap() _cur.grffile->cargo_map[c] = cs->bitnum; } else { /* Check the translation table for this cargo's label */ - int index = _cur.grffile->cargo_list.FindIndex(cs->label); - if (index >= 0) _cur.grffile->cargo_map[c] = index; + int idx = find_index(_cur.grffile->cargo_list, {cs->label}); + if (idx >= 0) _cur.grffile->cargo_map[c] = idx; } } } @@ -9226,7 +9226,7 @@ static void FinalisePriceBaseMultipliers() GRFFile *dest = GetFileByGRFID(override); if (dest == NULL) continue; - grf_overrides[i] = _grf_files.FindIndex(dest); + grf_overrides[i] = find_index(_grf_files, dest); assert(grf_overrides[i] >= 0); } |