summaryrefslogtreecommitdiff
path: root/src/goal_gui.cpp
diff options
context:
space:
mode:
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;