diff options
author | yexo <yexo@openttd.org> | 2009-12-15 22:39:58 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2009-12-15 22:39:58 +0000 |
commit | 35b8c8367eeea8ccd1832b15169d3c93e4437c04 (patch) | |
tree | 834d13c70b8e04ae0848d2ad67b9f5414f61408f /src | |
parent | e673232c189b55809de9d60a6ef35af7780203c4 (diff) | |
download | openttd-35b8c8367eeea8ccd1832b15169d3c93e4437c04.tar.xz |
(svn r18512) -Fix (r17859) [FS#3376]: assert when clicking the industry button in the scenario editor
Diffstat (limited to 'src')
-rw-r--r-- | src/industry_gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/industry_gui.cpp b/src/industry_gui.cpp index b265db0ec..28697ae2f 100644 --- a/src/industry_gui.cpp +++ b/src/industry_gui.cpp @@ -231,7 +231,7 @@ public: const IndustrySpec *indsp = GetIndustrySpec(this->index[i]); char cargo_suffix[3][512]; - GetAllCargoSuffixes(0, CST_FUND, NULL, this->selected_type, indsp, indsp->accepts_cargo, cargo_suffix); + GetAllCargoSuffixes(0, CST_FUND, NULL, this->index[i], indsp, indsp->accepts_cargo, cargo_suffix); StringID str = STR_INDUSTRY_VIEW_REQUIRES_CARGO; byte p = 0; SetDParam(0, STR_JUST_NOTHING); @@ -245,7 +245,7 @@ public: d = maxdim(d, GetStringBoundingBox(str)); /* Draw the produced cargos, if any. Otherwhise, will print "Nothing" */ - GetAllCargoSuffixes(3, CST_FUND, NULL, this->selected_type, indsp, indsp->produced_cargo, cargo_suffix); + GetAllCargoSuffixes(3, CST_FUND, NULL, this->index[i], indsp, indsp->produced_cargo, cargo_suffix); str = STR_INDUSTRY_VIEW_PRODUCES_CARGO; p = 0; SetDParam(0, STR_JUST_NOTHING); |