summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-11-15 00:54:46 +0300
committerAndrei Karas <akaras@inbox.ru>2017-12-02 21:34:34 +0300
commit312ec621b9ce71219e7de9802cd5dc691e0e321a (patch)
tree5cd05e2c5daadc33929ac2d26a1bfca84626ab36 /src
parent52abec06442607fca319a8309d26674871b25b53 (diff)
downloadhercules-312ec621b9ce71219e7de9802cd5dc691e0e321a.tar.gz
hercules-312ec621b9ce71219e7de9802cd5dc691e0e321a.tar.bz2
hercules-312ec621b9ce71219e7de9802cd5dc691e0e321a.tar.xz
hercules-312ec621b9ce71219e7de9802cd5dc691e0e321a.zip
Use skill inf value as int32 in all packets.
Before some packets had skill inf as int16 + unknown int16 field.
Diffstat (limited to 'src')
-rw-r--r--src/map/clif.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 95a2d8f5d..0b059823e 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -1679,8 +1679,7 @@ void clif_homskillinfoblock(struct map_session_data *sd) {
if ( id != 0 ) {
j = id - HM_SKILLBASE;
WFIFOW(fd, len) = id;
- WFIFOW(fd, len + 2) = skill->get_inf(id);
- WFIFOW(fd, len + 4) = 0;
+ WFIFOL(fd, len + 2) = skill->get_inf(id);
WFIFOW(fd, len + 6) = hd->homunculus.hskill[j].lv;
if ( hd->homunculus.hskill[j].lv ) {
WFIFOW(fd, len + 8) = skill->get_sp(id, hd->homunculus.hskill[j].lv);
@@ -6270,8 +6269,7 @@ void clif_item_skill(struct map_session_data *sd,uint16 skill_id,uint16 skill_lv
WFIFOHEAD(fd,packet_len(0x147));
WFIFOW(fd, 0)=0x147;
WFIFOW(fd, 2)=skill_id;
- WFIFOW(fd, 4)=skill->get_inf(skill_id);
- WFIFOW(fd, 6)=0;
+ WFIFOL(fd, 4)=skill->get_inf(skill_id);
WFIFOW(fd, 8)=skill_lv;
WFIFOW(fd,10)=skill->get_sp(skill_id,skill_lv);
WFIFOW(fd,12)=skill->get_range2(&sd->bl, skill_id,skill_lv);