(svn r26119) -Fix: ResolveCompanyID on an already resolved CompanyID

This commit is contained in:
rubidium 2013-11-26 12:46:21 +00:00
parent 8388624284
commit 0bf1d73556

View File

@ -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);
}