diff options
author | smatz <smatz@openttd.org> | 2009-08-07 22:23:34 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2009-08-07 22:23:34 +0000 |
commit | 74d3382b946d71445fbce5699d1541946e928450 (patch) | |
tree | 03fe2b58ca63a3e1629c08eefbdf061154cc977c /src/industry_cmd.cpp | |
parent | 39e145e586385861b4e3ded70f7df0a29b56fa00 (diff) | |
download | openttd-74d3382b946d71445fbce5699d1541946e928450.tar.xz |
(svn r17107) -Codechange: store type of subsidy source and destination in the Subsidy struct instead of determining it every time it's needed
Diffstat (limited to 'src/industry_cmd.cpp')
-rw-r--r-- | src/industry_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/industry_cmd.cpp b/src/industry_cmd.cpp index 1fd566ef9..f38648a15 100644 --- a/src/industry_cmd.cpp +++ b/src/industry_cmd.cpp @@ -167,7 +167,7 @@ Industry::~Industry() DecIndustryTypeCount(this->type); - DeleteSubsidyWithIndustry(this->index); + DeleteSubsidyWith(ST_INDUSTRY, this->index); DeleteIndustryNews(this->index); DeleteWindowById(WC_INDUSTRY_VIEW, this->index); InvalidateWindowData(WC_INDUSTRY_DIRECTORY, 0, 0); |