summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-12-09 15:19:43 +0000
committerrubidium <rubidium@openttd.org>2010-12-09 15:19:43 +0000
commitee4c152f712a0775e07d627e86c0c3f3978f47a3 (patch)
tree9067c6667d14cae7b96fba4a673158e4eaa17288 /src
parent23d8ebba3b86533dd8618f26f5fe132bab50dff0 (diff)
downloadopenttd-ee4c152f712a0775e07d627e86c0c3f3978f47a3.tar.xz
(svn r21442) -Fix [FS#4293] (r21412): don't use the current company for awarding subsidies; it's not quite valid there
Diffstat (limited to 'src')
-rw-r--r--src/subsidy.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/subsidy.cpp b/src/subsidy.cpp
index 341166480..b53c73758 100644
--- a/src/subsidy.cpp
+++ b/src/subsidy.cpp
@@ -41,7 +41,7 @@ void Subsidy::AwardTo(CompanyID company)
this->remaining = SUBSIDY_CONTRACT_MONTHS;
char company_name[MAX_LENGTH_COMPANY_NAME_CHARS * MAX_CHAR_LENGTH];
- SetDParam(0, _current_company);
+ SetDParam(0, company);
GetString(company_name, STR_COMPANY_NAME, lastof(company_name));
char *cn = strdup(company_name);