diff options
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; } |