summaryrefslogtreecommitdiff
path: root/src/emap/skill.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-07-10 01:10:50 +0300
committerAndrei Karas <akaras@inbox.ru>2016-07-10 01:10:50 +0300
commit7590c2d05be13837a7c46d271f500f637a3d555f (patch)
tree545a9a1963356f2798c16168b16827d3549d6cbb /src/emap/skill.c
parent21a887bd807e1ef727279e6a84faf3f83997c8ad (diff)
downloadplugin-7590c2d05be13837a7c46d271f500f637a3d555f.tar.gz
plugin-7590c2d05be13837a7c46d271f500f637a3d555f.tar.bz2
plugin-7590c2d05be13837a7c46d271f500f637a3d555f.tar.xz
plugin-7590c2d05be13837a7c46d271f500f637a3d555f.zip
Fix compilation warning for some compilers.
Diffstat (limited to 'src/emap/skill.c')
-rw-r--r--src/emap/skill.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emap/skill.c b/src/emap/skill.c
index eb177cc..d559693 100644
--- a/src/emap/skill.c
+++ b/src/emap/skill.c
@@ -218,7 +218,7 @@ void eskill_validate_additional_fields(struct config_setting_t *conf,
{
nullpo_retv(conf);
nullpo_retv(sk);
- Assert_retv(sk->nameid >= 0 && sk->nameid < MAX_SKILL_ID);
+ Assert_retv(sk->nameid < MAX_SKILL_ID);
int i32 = 0;
struct config_setting_t *t = NULL;