mirror of https://github.com/OpenTTD/OpenTTD
(svn r18512) -Fix (r17859) [FS#3376]: assert when clicking the industry button in the scenario editor
parent
e673232c18
commit
35b8c8367e
|
@ -231,7 +231,7 @@ public:
|
||||||
const IndustrySpec *indsp = GetIndustrySpec(this->index[i]);
|
const IndustrySpec *indsp = GetIndustrySpec(this->index[i]);
|
||||||
|
|
||||||
char cargo_suffix[3][512];
|
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;
|
StringID str = STR_INDUSTRY_VIEW_REQUIRES_CARGO;
|
||||||
byte p = 0;
|
byte p = 0;
|
||||||
SetDParam(0, STR_JUST_NOTHING);
|
SetDParam(0, STR_JUST_NOTHING);
|
||||||
|
@ -245,7 +245,7 @@ public:
|
||||||
d = maxdim(d, GetStringBoundingBox(str));
|
d = maxdim(d, GetStringBoundingBox(str));
|
||||||
|
|
||||||
/* Draw the produced cargos, if any. Otherwhise, will print "Nothing" */
|
/* 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;
|
str = STR_INDUSTRY_VIEW_PRODUCES_CARGO;
|
||||||
p = 0;
|
p = 0;
|
||||||
SetDParam(0, STR_JUST_NOTHING);
|
SetDParam(0, STR_JUST_NOTHING);
|
||||||
|
|
Loading…
Reference in New Issue