summaryrefslogtreecommitdiff
path: root/src/script
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2013-11-09 06:52:08 +0000
committerrubidium <rubidium@openttd.org>2013-11-09 06:52:08 +0000
commit85d4f8d65c891b162405b66b0949cf9c5998078f (patch)
tree1326872285097e1e213712efdde64c7bf061c7ef /src/script
parent14b8f6e594c8a80c220b58fa8ce7d33d8c509b3f (diff)
downloadopenttd-85d4f8d65c891b162405b66b0949cf9c5998078f.tar.xz
(svn r25959) -Fix: clang warnings; either because type safety was assumed, or because technically the wrong value was tested
Diffstat (limited to 'src/script')
-rw-r--r--src/script/api/script_goal.cpp2
1 files changed, 1 insertions, 1 deletions
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;