diff options
author | glx <glx@openttd.org> | 2019-04-13 23:46:11 +0200 |
---|---|---|
committer | glx22 <glx22@users.noreply.github.com> | 2019-04-18 21:49:34 +0200 |
commit | 48f99fd980f0577ab4336d7807a1781000253c3b (patch) | |
tree | d65f41f03d71eb004aeb5c9e6d9af12159348dd2 /src/industrytype.h | |
parent | 60da17418a190eb262eda5eadb03954a8b98a0e6 (diff) | |
download | openttd-48f99fd980f0577ab4336d7807a1781000253c3b.tar.xz |
Codechange: use std::array for _sorted_industry_types
Diffstat (limited to 'src/industrytype.h')
-rw-r--r-- | src/industrytype.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/industrytype.h b/src/industrytype.h index cd451fa77..8f1357b67 100644 --- a/src/industrytype.h +++ b/src/industrytype.h @@ -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. |