diff options
author | glx22 <glx@openttd.org> | 2021-06-13 04:18:21 +0200 |
---|---|---|
committer | Loïc Guilloux <glx22@users.noreply.github.com> | 2021-07-09 21:36:09 +0200 |
commit | 89ab8b79a51b4963da55dce195ea1ab520c73b50 (patch) | |
tree | f0ba92ca28e0a322ea277568ee3a75a276e3ae52 /src/newgrf.cpp | |
parent | 5844027eb8588197d82fe896f027182621c4f923 (diff) | |
download | openttd-89ab8b79a51b4963da55dce195ea1ab520c73b50.tar.xz |
Codechange: Remove FOR_EACH_SET_BIT
Diffstat (limited to 'src/newgrf.cpp')
-rw-r--r-- | src/newgrf.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp index 77b4d52a9..15e95e4d2 100644 --- a/src/newgrf.cpp +++ b/src/newgrf.cpp @@ -961,8 +961,7 @@ static bool ReadSpriteLayout(ByteReader *buf, uint num_building_sprites, bool us static CargoTypes TranslateRefitMask(uint32 refit_mask) { CargoTypes result = 0; - uint8 bit; - FOR_EACH_SET_BIT(bit, refit_mask) { + for (uint8 bit : SetBitIterator(refit_mask)) { CargoID cargo = GetCargoTranslation(bit, _cur.grffile, true); if (cargo != CT_INVALID) SetBit(result, cargo); } |