Changeset - r21039:849fffd298e6
[Not reviewed]
master
0 1 0
rubidium - 11 years ago 2013-11-26 12:46:21
rubidium@openttd.org
(svn r26119) -Fix: ResolveCompanyID on an already resolved CompanyID
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/script/api/script_company.cpp
Show inline comments
 
@@ -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);
 
}
0 comments (0 inline, 0 general)