summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorzuu <zuu@openttd.org>2013-09-21 19:35:49 +0000
committerzuu <zuu@openttd.org>2013-09-21 19:35:49 +0000
commitce5ea8900c0d7f92f1dfbdc3d43973ede338a4de (patch)
treee101848c0d84eb804a5fbc630233ce0e043c91cc /src
parent41b914aeb05751cb49d6102b3d4a3556ab927c56 (diff)
downloadopenttd-ce5ea8900c0d7f92f1dfbdc3d43973ede338a4de.tar.xz
(svn r25791) -Fix (r25788): Silence comiler warning in ScriptCompany::ChangeBankBalance
Diffstat (limited to 'src')
-rw-r--r--src/script/api/script_company.cpp2
1 files changed, 1 insertions, 1 deletions
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);