diff options
author | glx22 <glx@openttd.org> | 2021-04-30 15:41:58 +0200 |
---|---|---|
committer | Loïc Guilloux <glx22@users.noreply.github.com> | 2021-05-03 19:46:57 +0200 |
commit | 983c7ade60f82a49d8c23c1f295add1fd9a913b0 (patch) | |
tree | 879eace14cb5fa56c407fbd3c0b5a04fa6a808e2 /src/fios.cpp | |
parent | 34215f7faa2de08d767b4f6945443a8f3175acbf (diff) | |
download | openttd-983c7ade60f82a49d8c23c1f295add1fd9a913b0.tar.xz |
Codechange: Replace FOR_ALL_SEARCHPATHS with range-based for loops
Diffstat (limited to 'src/fios.cpp')
-rw-r--r-- | src/fios.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/fios.cpp b/src/fios.cpp index 8528e8c62..3b11bcbe0 100644 --- a/src/fios.cpp +++ b/src/fios.cpp @@ -582,8 +582,7 @@ static FiosType FiosGetHeightmapListCallback(SaveLoadOperation fop, const std::s * collections of NewGRFs or 32 bpp graphics replacement PNGs. */ bool match = false; - Searchpath sp; - FOR_ALL_SEARCHPATHS(sp) { + for (Searchpath sp : _valid_searchpaths) { std::string buf = FioGetDirectory(sp, HEIGHTMAP_DIR); if (buf.compare(0, buf.size(), it->second.tar_filename, 0, buf.size()) == 0) { |