summaryrefslogtreecommitdiff
path: root/src/goal_gui.cpp
diff options
context:
space:
mode:
authorglx22 <glx@openttd.org>2021-06-13 04:18:21 +0200
committerLoïc Guilloux <glx22@users.noreply.github.com>2021-07-09 21:36:09 +0200
commit89ab8b79a51b4963da55dce195ea1ab520c73b50 (patch)
treef0ba92ca28e0a322ea277568ee3a75a276e3ae52 /src/goal_gui.cpp
parent5844027eb8588197d82fe896f027182621c4f923 (diff)
downloadopenttd-89ab8b79a51b4963da55dce195ea1ab520c73b50.tar.xz
Codechange: Remove FOR_EACH_SET_BIT
Diffstat (limited to 'src/goal_gui.cpp')
-rw-r--r--src/goal_gui.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/goal_gui.cpp b/src/goal_gui.cpp
index 922f5f5d5..65ed9003b 100644
--- a/src/goal_gui.cpp
+++ b/src/goal_gui.cpp
@@ -336,9 +336,8 @@ struct GoalQuestionWindow : public Window {
this->question = stredup(question);
/* Figure out which buttons we have to enable. */
- uint bit;
int n = 0;
- FOR_EACH_SET_BIT(bit, button_mask) {
+ for (uint bit : SetBitIterator(button_mask)) {
if (bit >= GOAL_QUESTION_BUTTON_COUNT) break;
this->button[n++] = bit;
if (n == 3) break;