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

@@ -12,6 +12,7 @@
#ifndef INDUSTRYTYPE_H
#define INDUSTRYTYPE_H
#include <array>
#include "map_type.h"
#include "slope_type.h"
#include "industry_type.h"
@@ -179,7 +180,7 @@ extern IndustryTileSpec _industry_tile_specs[NUM_INDUSTRYTILES];
/* industry_gui.cpp */
void SortIndustryTypes();
/* Industry types sorted alphabetically by name. */
extern IndustryType _sorted_industry_types[NUM_INDUSTRYTYPES];
extern std::array<IndustryType, NUM_INDUSTRYTYPES> _sorted_industry_types;
/**
* Do industry gfx ID translation for NewGRFs.