mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +00:00
(svn r26119) -Fix: ResolveCompanyID on an already resolved CompanyID
This commit is contained in:
parent
8388624284
commit
0bf1d73556
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user