From 74d3382b946d71445fbce5699d1541946e928450 Mon Sep 17 00:00:00 2001 From: smatz Date: Fri, 7 Aug 2009 22:23:34 +0000 Subject: (svn r17107) -Codechange: store type of subsidy source and destination in the Subsidy struct instead of determining it every time it's needed --- src/industry_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/industry_cmd.cpp') 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); -- cgit v1.2.3-54-g00ecf