diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-02-13 17:16:57 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-02-13 17:16:57 +0300 |
commit | 7c8b7241066c7e0eb4e46d2a837253129ed886f7 (patch) | |
tree | 0ad13cc30719ed0a339d0ead95976a03e5f02097 | |
parent | 1e609ca42e0ab4c7699b55dcfa043891b9a41136 (diff) | |
download | hercules-7c8b7241066c7e0eb4e46d2a837253129ed886f7.tar.gz hercules-7c8b7241066c7e0eb4e46d2a837253129ed886f7.tar.bz2 hercules-7c8b7241066c7e0eb4e46d2a837253129ed886f7.tar.xz hercules-7c8b7241066c7e0eb4e46d2a837253129ed886f7.zip |
Fix wrong id usage in clif_addskill.
Was used skill id, but must be used skill idx.
-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 a298e6707..6800ec15b 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -4631,7 +4631,7 @@ void clif_addskill(struct map_session_data *sd, int id) WFIFOW(fd,12)= skill->get_range2(&sd->bl, id,sd->status.skill[idx].lv); safestrncpy((char*)WFIFOP(fd,14), skill->get_name(id), NAME_LENGTH); if( sd->status.skill[idx].flag == SKILL_FLAG_PERMANENT ) - WFIFOB(fd,38) = (sd->status.skill[id].lv < skill->tree_get_max(id, sd->status.class_))? 1:0; + WFIFOB(fd,38) = (sd->status.skill[idx].lv < skill->tree_get_max(id, sd->status.class_))? 1:0; else WFIFOB(fd,38) = 0; WFIFOSET(fd,packet_len(0x111)); |