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/town_gui.cpp | |
parent | 5844027eb8588197d82fe896f027182621c4f923 (diff) | |
download | openttd-89ab8b79a51b4963da55dce195ea1ab520c73b50.tar.xz |
Codechange: Remove FOR_EACH_SET_BIT
Diffstat (limited to 'src/town_gui.cpp')
-rw-r--r-- | src/town_gui.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/town_gui.cpp b/src/town_gui.cpp index 2d7aa8f20..ec44b246b 100644 --- a/src/town_gui.cpp +++ b/src/town_gui.cpp @@ -84,8 +84,7 @@ private: static int GetNthSetBit(uint32 bits, int n) { if (n >= 0) { - uint i; - FOR_EACH_SET_BIT(i, bits) { + for (uint i : SetBitIterator(bits)) { n--; if (n < 0) return i; } |