summaryrefslogtreecommitdiff
path: root/src/newgrf.cpp
diff options
context:
space:
mode:
authorterkhen <terkhen@openttd.org>2010-04-01 19:48:28 +0000
committerterkhen <terkhen@openttd.org>2010-04-01 19:48:28 +0000
commit4ec8fed1da87b79dda5edd6cc7c052379c7b8c4e (patch)
tree87d9b6a57e05d8173f3a712a6ca7b21802cf2602 /src/newgrf.cpp
parente1c68f1b2c303617894070ba499c277635af2639 (diff)
downloadopenttd-4ec8fed1da87b79dda5edd6cc7c052379c7b8c4e.tar.xz
(svn r19534) -Add: Keep a list of cargo specifications sorted by cargo class / name.
Diffstat (limited to 'src/newgrf.cpp')
-rw-r--r--src/newgrf.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp
index e548683b7..463fde046 100644
--- a/src/newgrf.cpp
+++ b/src/newgrf.cpp
@@ -6809,6 +6809,8 @@ static void AfterLoadGRFs()
/* Add all new industries to the industry array. */
FinaliseIndustriesArray();
+ InitializeSortedCargoSpecs();
+
/* Sort the list of industry types. */
SortIndustryTypes();