summaryrefslogtreecommitdiff
path: root/src/script
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2013-11-26 12:46:21 +0000
committerrubidium <rubidium@openttd.org>2013-11-26 12:46:21 +0000
commit3b83a195ca38689beae62c4e699fc2c57b76805e (patch)
treeb15af521acbf01ba13a02df00b49df4c58dcba72 /src/script
parentb12205697be112c0a03d8ff0128467cfdd734dbd (diff)
downloadopenttd-3b83a195ca38689beae62c4e699fc2c57b76805e.tar.xz
(svn r26119) -Fix: ResolveCompanyID on an already resolved CompanyID
Diffstat (limited to 'src/script')
-rw-r--r--src/script/api/script_company.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/api/script_company.cpp b/src/script/api/script_company.cpp
index 6b5c3d5e8..851ca7888 100644
--- a/src/script/api/script_company.cpp
+++ b/src/script/api/script_company.cpp
@@ -230,7 +230,7 @@
EnforcePrecondition(false, expenses_type < (ExpensesType)::EXPENSES_END);
company = ResolveCompanyID(company);
- EnforcePrecondition(false, ResolveCompanyID(company) != COMPANY_INVALID);
+ EnforcePrecondition(false, company != COMPANY_INVALID);
return ScriptObject::DoCommand(0, (uint32)(delta), company | expenses_type << 8 , CMD_CHANGE_BANK_BALANCE);
}