diff options
-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); } |