From 85d4f8d65c891b162405b66b0949cf9c5998078f Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 9 Nov 2013 06:52:08 +0000 Subject: (svn r25959) -Fix: clang warnings; either because type safety was assumed, or because technically the wrong value was tested --- src/script/api/script_goal.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/script/api/script_goal.cpp') diff --git a/src/script/api/script_goal.cpp b/src/script/api/script_goal.cpp index b5d6112fc..56f3628d0 100644 --- a/src/script/api/script_goal.cpp +++ b/src/script/api/script_goal.cpp @@ -107,7 +107,7 @@ EnforcePrecondition(false, company == ScriptCompany::COMPANY_INVALID || ScriptCompany::ResolveCompanyID(company) != ScriptCompany::COMPANY_INVALID); EnforcePrecondition(false, CountBits(buttons) >= 1 && CountBits(buttons) <= 3); EnforcePrecondition(false, buttons < (1 << ::GOAL_QUESTION_BUTTON_COUNT)); - EnforcePrecondition(false, type < ::GOAL_QUESTION_TYPE_COUNT); + EnforcePrecondition(false, (int)type < ::GOAL_QUESTION_TYPE_COUNT); uint8 c = company; if (company == ScriptCompany::COMPANY_INVALID) c = INVALID_COMPANY; -- cgit v1.2.3-54-g00ecf