From ce5ea8900c0d7f92f1dfbdc3d43973ede338a4de Mon Sep 17 00:00:00 2001 From: zuu Date: Sat, 21 Sep 2013 19:35:49 +0000 Subject: (svn r25791) -Fix (r25788): Silence comiler warning in ScriptCompany::ChangeBankBalance --- src/script/api/script_company.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/script') diff --git a/src/script/api/script_company.cpp b/src/script/api/script_company.cpp index 01c2ce6ec..6b5c3d5e8 100644 --- a/src/script/api/script_company.cpp +++ b/src/script/api/script_company.cpp @@ -227,7 +227,7 @@ /* static */ bool ScriptCompany::ChangeBankBalance(CompanyID company, int32 delta, ExpensesType expenses_type) { EnforcePrecondition(false, ScriptObject::GetCompany() == OWNER_DEITY); - EnforcePrecondition(false, expenses_type < ::EXPENSES_END); + EnforcePrecondition(false, expenses_type < (ExpensesType)::EXPENSES_END); company = ResolveCompanyID(company); EnforcePrecondition(false, ResolveCompanyID(company) != COMPANY_INVALID); -- cgit v1.2.3-70-g09d2