summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-02-13 17:16:57 +0300
committerAndrei Karas <akaras@inbox.ru>2015-02-13 17:16:57 +0300
commit7c8b7241066c7e0eb4e46d2a837253129ed886f7 (patch)
tree0ad13cc30719ed0a339d0ead95976a03e5f02097
parent1e609ca42e0ab4c7699b55dcfa043891b9a41136 (diff)
downloadhercules-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.c2
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));