summaryrefslogtreecommitdiff
path: root/src/build_vehicle_gui.cpp
diff options
context:
space:
mode:
authorglx22 <glx@openttd.org>2021-06-13 02:41:41 +0200
committerLoïc Guilloux <glx22@users.noreply.github.com>2021-07-09 21:36:09 +0200
commit5844027eb8588197d82fe896f027182621c4f923 (patch)
tree1c7def8d614ade7d98ab97d42651a152b34eafe7 /src/build_vehicle_gui.cpp
parent87eb997be0ffb8a62f31ed222e41a10a2622437f (diff)
downloadopenttd-5844027eb8588197d82fe896f027182621c4f923.tar.xz
Codechange: Remove FOR_ALL_SORTED_STANDARD_CARGOSPECS
Diffstat (limited to 'src/build_vehicle_gui.cpp')
-rw-r--r--src/build_vehicle_gui.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/build_vehicle_gui.cpp b/src/build_vehicle_gui.cpp
index bdd32dc22..f88a7ee14 100644
--- a/src/build_vehicle_gui.cpp
+++ b/src/build_vehicle_gui.cpp
@@ -1186,8 +1186,7 @@ struct BuildVehicleWindow : Window {
}
/* Collect available cargo types for filtering. */
- const CargoSpec *cs;
- FOR_ALL_SORTED_STANDARD_CARGOSPECS(cs) {
+ for (const CargoSpec *cs : _sorted_standard_cargo_specs) {
this->cargo_filter[filter_items] = cs->Index();
this->cargo_filter_texts[filter_items] = cs->name;
filter_items++;