summaryrefslogtreecommitdiff
path: root/src/smallmap_gui.cpp
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2019-04-13 23:46:11 +0200
committerglx22 <glx22@users.noreply.github.com>2019-04-18 21:49:34 +0200
commit48f99fd980f0577ab4336d7807a1781000253c3b (patch)
treed65f41f03d71eb004aeb5c9e6d9af12159348dd2 /src/smallmap_gui.cpp
parent60da17418a190eb262eda5eadb03954a8b98a0e6 (diff)
downloadopenttd-48f99fd980f0577ab4336d7807a1781000253c3b.tar.xz
Codechange: use std::array for _sorted_industry_types
Diffstat (limited to 'src/smallmap_gui.cpp')
-rw-r--r--src/smallmap_gui.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/smallmap_gui.cpp b/src/smallmap_gui.cpp
index 69ce56d34..58e89c57f 100644
--- a/src/smallmap_gui.cpp
+++ b/src/smallmap_gui.cpp
@@ -178,8 +178,7 @@ void BuildIndustriesLegend()
uint j = 0;
/* Add each name */
- for (uint i = 0; i < NUM_INDUSTRYTYPES; i++) {
- IndustryType ind = _sorted_industry_types[i];
+ for (IndustryType ind : _sorted_industry_types) {
const IndustrySpec *indsp = GetIndustrySpec(ind);
if (indsp->enabled) {
_legend_from_industries[j].legend = indsp->name;