diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-07-07 21:39:19 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-07-15 20:36:22 +0300 |
commit | 33d045acfba3a6dbde16a4bb26fde5ecab427e4e (patch) | |
tree | f4b159bb8ac8f747a6290c041472a57f68e1d254 /src/map/clif.c | |
parent | eee04309da8d3ac35a752e119cf59fdd35b679da (diff) | |
download | hercules-33d045acfba3a6dbde16a4bb26fde5ecab427e4e.tar.gz hercules-33d045acfba3a6dbde16a4bb26fde5ecab427e4e.tar.bz2 hercules-33d045acfba3a6dbde16a4bb26fde5ecab427e4e.tar.xz hercules-33d045acfba3a6dbde16a4bb26fde5ecab427e4e.zip |
Update packet PACKET_CZ_REQ_ITEMREPAIR.
Diffstat (limited to 'src/map/clif.c')
-rw-r--r-- | src/map/clif.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index 9e6e0f779..2cb3bebaa 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -11971,6 +11971,8 @@ static void clif_parse_RepairItem(int fd, struct map_session_data *sd) __attribu /// 01fd <index>.W <name id>.W <refine>.B <card1>.W <card2>.W <card3>.W <card4>.W static void clif_parse_RepairItem(int fd, struct map_session_data *sd) { + const struct PACKET_CZ_REQ_ITEMREPAIR *p = RFIFOP(fd, 0); + if (sd->menuskill_id != BS_REPAIRWEAPON) return; if (pc_istrading(sd)) { @@ -11979,7 +11981,7 @@ static void clif_parse_RepairItem(int fd, struct map_session_data *sd) clif_menuskill_clear(sd); return; } - skill->repairweapon(sd,RFIFOW(fd,2)); + skill->repairweapon(sd, p->index); clif_menuskill_clear(sd); } |