diff options
author | zuu <zuu@openttd.org> | 2013-09-21 19:35:49 +0000 |
---|---|---|
committer | zuu <zuu@openttd.org> | 2013-09-21 19:35:49 +0000 |
commit | ce5ea8900c0d7f92f1dfbdc3d43973ede338a4de (patch) | |
tree | e101848c0d84eb804a5fbc630233ce0e043c91cc /src/script/api/script_company.cpp | |
parent | 41b914aeb05751cb49d6102b3d4a3556ab927c56 (diff) | |
download | openttd-ce5ea8900c0d7f92f1dfbdc3d43973ede338a4de.tar.xz |
(svn r25791) -Fix (r25788): Silence comiler warning in ScriptCompany::ChangeBankBalance
Diffstat (limited to 'src/script/api/script_company.cpp')
-rw-r--r-- | src/script/api/script_company.cpp | 2 |
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); |