summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-07-02 15:57:55 +0300
committerAndrei Karas <akaras@inbox.ru>2016-07-02 15:57:55 +0300
commitad92652c76fbfea5a439a35c881c61d63a1d2bd8 (patch)
treee77e52ed095b32c53781882873610ff135c364aa
parentf3ca5475f56993e9eb59936e9ee6656400a8aa32 (diff)
downloadhercules-ad92652c76fbfea5a439a35c881c61d63a1d2bd8.tar.gz
hercules-ad92652c76fbfea5a439a35c881c61d63a1d2bd8.tar.bz2
hercules-ad92652c76fbfea5a439a35c881c61d63a1d2bd8.tar.xz
hercules-ad92652c76fbfea5a439a35c881c61d63a1d2bd8.zip
Fix guild skill range check in clif_parse_UseSkillToId.
Wrong check prevent from using custom skills with id after guild skills.
-rw-r--r--src/map/clif.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 21c3c1c3e..afd98aedb 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -11192,7 +11192,7 @@ void clif_parse_UseSkillToId(int fd, struct map_session_data *sd)
sd->skillitem = sd->skillitemlv = 0;
- if( skill_id >= GD_SKILLBASE ) {
+ if (skill_id >= GD_SKILLBASE && skill_id < GD_MAX) {
if( sd->state.gmaster_flag )
skill_lv = guild->checkskill(sd->guild, skill_id);
else