summaryrefslogtreecommitdiff
path: root/src/industrytype.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/industrytype.h')
-rw-r--r--src/industrytype.h3
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.