summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorshennetsind <shennetsind@users.noreply.github.com>2015-02-15 15:45:52 -0200
committershennetsind <shennetsind@users.noreply.github.com>2015-02-15 15:45:52 -0200
commitdc2e1b5a641ab27155a0a437543ae2ad49f84f13 (patch)
treef7581e474c6a2ebed0499a5c8dd5399dabdec0ad /src
parent102d20ae15b3382f23e4d845926282974245e99a (diff)
parent7c8b7241066c7e0eb4e46d2a837253129ed886f7 (diff)
downloadhercules-dc2e1b5a641ab27155a0a437543ae2ad49f84f13.tar.gz
hercules-dc2e1b5a641ab27155a0a437543ae2ad49f84f13.tar.bz2
hercules-dc2e1b5a641ab27155a0a437543ae2ad49f84f13.tar.xz
hercules-dc2e1b5a641ab27155a0a437543ae2ad49f84f13.zip
Merge pull request #462 from 4144/fixclif
Fix wrong id usage in clif_addskill.
Diffstat (limited to 'src')
-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));