summaryrefslogtreecommitdiff
path: root/src/newgrf.cpp
diff options
context:
space:
mode:
authorterkhen <terkhen@openttd.org>2010-03-28 12:25:09 +0000
committerterkhen <terkhen@openttd.org>2010-03-28 12:25:09 +0000
commit217a98e69b56d74b53d915d15bd73e000005935d (patch)
treec4869b011ba7db7dc8c5a0b68a58f59c4d3cadd5 /src/newgrf.cpp
parent5193ed0fc1aecf9492a29e6ce87f07ee53d21ab6 (diff)
downloadopenttd-217a98e69b56d74b53d915d15bd73e000005935d.tar.xz
(svn r19521) -Codechange: Use a IndustryType array to sort industries by name instead of a LegendAndColour array.
Diffstat (limited to 'src/newgrf.cpp')
-rw-r--r--src/newgrf.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp
index 6f9b54deb..e548683b7 100644
--- a/src/newgrf.cpp
+++ b/src/newgrf.cpp
@@ -6809,6 +6809,9 @@ static void AfterLoadGRFs()
/* Add all new industries to the industry array. */
FinaliseIndustriesArray();
+ /* Sort the list of industry types. */
+ SortIndustryTypes();
+
/* Create dynamic list of industry legends for smallmap_gui.cpp */
BuildIndustriesLegend();