diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-07-02 15:57:55 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-07-02 15:57:55 +0300 |
commit | ad92652c76fbfea5a439a35c881c61d63a1d2bd8 (patch) | |
tree | e77e52ed095b32c53781882873610ff135c364aa /src/map/clif.c | |
parent | f3ca5475f56993e9eb59936e9ee6656400a8aa32 (diff) | |
download | hercules-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.
Diffstat (limited to 'src/map/clif.c')
-rw-r--r-- | src/map/clif.c | 2 |
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 |