diff options
author | Henry Wilson <m3henry@googlemail.com> | 2018-09-23 17:36:45 +0100 |
---|---|---|
committer | PeterN <peter@fuzzle.org> | 2019-03-26 20:15:57 +0000 |
commit | 81315939b909a95277ffbab51709714779089656 (patch) | |
tree | 9ee8bf1dc8e63cc0a44795ae6d23194d03bf6628 /src/animated_tile.cpp | |
parent | f3938fdb838685e76bba78974bb6e90e9afc6e22 (diff) | |
download | openttd-81315939b909a95277ffbab51709714779089656.tar.xz |
Codechange: Replaced SmallVector::Find() non-const with std::find()
Diffstat (limited to 'src/animated_tile.cpp')
-rw-r--r-- | src/animated_tile.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/animated_tile.cpp b/src/animated_tile.cpp index 5d4384820..3341f5795 100644 --- a/src/animated_tile.cpp +++ b/src/animated_tile.cpp @@ -27,7 +27,7 @@ SmallVector<TileIndex, 256> _animated_tiles; */ void DeleteAnimatedTile(TileIndex tile) { - TileIndex *to_remove = _animated_tiles.Find(tile); + TileIndex *to_remove = &*std::find(_animated_tiles.begin(), _animated_tiles.end(), tile); if (to_remove != _animated_tiles.End()) { /* The order of the remaining elements must stay the same, otherwise the animation loop may miss a tile. */ _animated_tiles.ErasePreservingOrder(to_remove); |