summaryrefslogtreecommitdiff
path: root/src/station_cmd.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/station_cmd.cpp
parent5844027eb8588197d82fe896f027182621c4f923 (diff)
downloadopenttd-89ab8b79a51b4963da55dce195ea1ab520c73b50.tar.xz
Codechange: Remove FOR_EACH_SET_BIT
Diffstat (limited to 'src/station_cmd.cpp')
-rw-r--r--src/station_cmd.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp
index 8f26ecf4c..a58c7b1f2 100644
--- a/src/station_cmd.cpp
+++ b/src/station_cmd.cpp
@@ -2993,8 +2993,7 @@ draw_default_foundation:
/* Sprite layout which needs preprocessing */
bool separate_ground = HasBit(statspec->flags, SSF_SEPARATE_GROUND);
uint32 var10_values = layout->PrepareLayout(total_offset, rti->fallback_railtype, 0, 0, separate_ground);
- uint8 var10;
- FOR_EACH_SET_BIT(var10, var10_values) {
+ for (uint8 var10 : SetBitIterator(var10_values)) {
uint32 var10_relocation = GetCustomStationRelocation(statspec, st, ti->tile, var10);
layout->ProcessRegisters(var10, var10_relocation, separate_ground);
}