Codechange: use std::array for _sorted_industry_types

This commit is contained in:
glx
2019-04-13 23:46:11 +02:00
committed by glx22
parent 60da17418a
commit 48f99fd980
3 changed files with 14 additions and 16 deletions

View File

@@ -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;