diff options
author | Henry Wilson <m3henry@googlemail.com> | 2018-09-24 20:24:40 +0100 |
---|---|---|
committer | PeterN <peter@fuzzle.org> | 2019-03-26 20:15:57 +0000 |
commit | b1f5119d3af2fb47a2f1c752d61a742f41076451 (patch) | |
tree | b9243f929781864a629b45fa90326a07aa33fa77 /src/vehicle_gui.cpp | |
parent | 9b5cc73f3eeefdad439b2d93d872e621891f2b38 (diff) | |
download | openttd-b1f5119d3af2fb47a2f1c752d61a742f41076451.tar.xz |
Codechange: Replaced SmallVector::ErasePreservingOrder(pos, count) with std::vector::erase()
Diffstat (limited to 'src/vehicle_gui.cpp')
-rw-r--r-- | src/vehicle_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicle_gui.cpp b/src/vehicle_gui.cpp index 95f0a28ec..6dd4bef33 100644 --- a/src/vehicle_gui.cpp +++ b/src/vehicle_gui.cpp @@ -494,7 +494,7 @@ struct RefitWindow : public Window { while (pos < l.size() && l[pos].subtype != refit_cyc) pos++; if (pos < l.size() && l[pos].string != subtype) { /* String mismatch, remove item keeping the order */ - l.ErasePreservingOrder(pos); + l.erase(l.begin() + pos); } } } |