diff options
author | rubidium <rubidium@openttd.org> | 2013-11-26 12:46:21 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2013-11-26 12:46:21 +0000 |
commit | 3b83a195ca38689beae62c4e699fc2c57b76805e (patch) | |
tree | b15af521acbf01ba13a02df00b49df4c58dcba72 /src/script/api | |
parent | b12205697be112c0a03d8ff0128467cfdd734dbd (diff) | |
download | openttd-3b83a195ca38689beae62c4e699fc2c57b76805e.tar.xz |
(svn r26119) -Fix: ResolveCompanyID on an already resolved CompanyID
Diffstat (limited to 'src/script/api')
-rw-r--r-- | src/script/api/script_company.cpp | 2 |
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); } |