summaryrefslogtreecommitdiff
path: root/src/smallmap_gui.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2010-03-20 14:30:16 +0000
committerfrosch <frosch@openttd.org>2010-03-20 14:30:16 +0000
commit116a5f56a4c1362446bcf921e4436a19057d105e (patch)
treeeeb12e8765bc1997310546c701043efd81c9b410 /src/smallmap_gui.cpp
parente27e5febb60f1cd2a2c70b100652c9365d97dbbd (diff)
downloadopenttd-116a5f56a4c1362446bcf921e4436a19057d105e.tar.xz
(svn r19481) -Codechange: Turn _industry_counts into a static member of Industry.
Diffstat (limited to 'src/smallmap_gui.cpp')
-rw-r--r--src/smallmap_gui.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/smallmap_gui.cpp b/src/smallmap_gui.cpp
index 40d238c9b..e44957217 100644
--- a/src/smallmap_gui.cpp
+++ b/src/smallmap_gui.cpp
@@ -1092,8 +1092,7 @@ public:
/* Industry name must be formatted, since it's not in tiny font in the specs.
* So, draw with a parameter and use the STR_SMALLMAP_INDUSTRY string, which is tiny font */
SetDParam(0, tbl->legend);
- assert(tbl->type < NUM_INDUSTRYTYPES);
- SetDParam(1, _industry_counts[tbl->type]);
+ SetDParam(1, Industry::GetIndustryTypeCount(tbl->type));
if (!tbl->show_on_map) {
/* Simply draw the string, not the black border of the legend colour.
* This will enforce the idea of the disabled item */