diff options
Diffstat (limited to 'src/script')
-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); |