forked from mirror/OpenTTD
(svn r26119) -Fix: ResolveCompanyID on an already resolved CompanyID
This commit is contained in:
@@ -230,7 +230,7 @@
|
|||||||
EnforcePrecondition(false, expenses_type < (ExpensesType)::EXPENSES_END);
|
EnforcePrecondition(false, expenses_type < (ExpensesType)::EXPENSES_END);
|
||||||
|
|
||||||
company = ResolveCompanyID(company);
|
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);
|
return ScriptObject::DoCommand(0, (uint32)(delta), company | expenses_type << 8 , CMD_CHANGE_BANK_BALANCE);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user