Changeset - r21040:08afd80adcb4
[Not reviewed]
master
0 1 0
rubidium - 11 years ago 2013-11-26 12:48:56
rubidium@openttd.org
(svn r26120) -Fix: [Script] Replace simple check with precondition check, after that simple check was documented as a precondition
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/script/api/script_company.cpp
Show inline comments
 
@@ -246,7 +246,7 @@
 
/* static */ TileIndex ScriptCompany::GetCompanyHQ(CompanyID company)
 
{
 
	company = ResolveCompanyID(company);
 
	if (company == COMPANY_INVALID) return INVALID_TILE;
 
	EnforcePrecondition(INVALID_TILE, company != COMPANY_INVALID);
 

	
 
	TileIndex loc = ::Company::Get((CompanyID)company)->location_of_HQ;
 
	return (loc == 0) ? INVALID_TILE : loc;
0 comments (0 inline, 0 general)