diff options
author | malufett <malufett.eat.my.binaries@gmail.com> | 2015-05-23 03:58:57 +0800 |
---|---|---|
committer | malufett <malufett.eat.my.binaries@gmail.com> | 2015-05-23 03:58:57 +0800 |
commit | dbaff8bdff2552c94d83e71249ae9e2117f62a72 (patch) | |
tree | 9e22e09264d4809706229b4872da10de65c2e637 /src/map | |
parent | 3c7c365581b039839c1b185d7cb3c78f7233e7fb (diff) | |
download | hercules-dbaff8bdff2552c94d83e71249ae9e2117f62a72.tar.gz hercules-dbaff8bdff2552c94d83e71249ae9e2117f62a72.tar.bz2 hercules-dbaff8bdff2552c94d83e71249ae9e2117f62a72.tar.xz hercules-dbaff8bdff2552c94d83e71249ae9e2117f62a72.zip |
Fixed Bug#8672
-http://hercules.ws/board/tracker/issue-8672-map-server-error/
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/clif.c | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index 09e3ddc69..0dc04a3b8 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -1524,15 +1524,17 @@ void clif_homskillinfoblock(struct map_session_data *sd) { int id = hd->homunculus.hskill[i].id; if (id != 0) { j = id - HM_SKILLBASE; - WFIFOW(fd,len ) = id; - WFIFOW(fd,len+2) = skill->get_inf(id); - WFIFOW(fd,len+4) = 0; - WFIFOW(fd,len+6) = hd->homunculus.hskill[j].lv; - WFIFOW(fd,len+8) = skill->get_sp(id,hd->homunculus.hskill[j].lv); - WFIFOW(fd,len+10)= skill->get_range2(&sd->hd->bl, id,hd->homunculus.hskill[j].lv); - safestrncpy((char*)WFIFOP(fd,len+12), skill->get_name(id), NAME_LENGTH); - WFIFOB(fd,len+36) = (hd->homunculus.hskill[j].lv < homun->skill_tree_get_max(id, hd->homunculus.class_))?1:0; - len+=37; + if ( hd->homunculus.hskill[j].lv ) { + WFIFOW(fd, len) = id; + WFIFOW(fd, len + 2) = skill->get_inf(id); + WFIFOW(fd, len + 4) = 0; + WFIFOW(fd, len + 6) = hd->homunculus.hskill[j].lv; + WFIFOW(fd, len + 8) = skill->get_sp(id, hd->homunculus.hskill[j].lv); + WFIFOW(fd, len + 10) = skill->get_range2(&sd->hd->bl, id, hd->homunculus.hskill[j].lv); + safestrncpy((char*)WFIFOP(fd, len + 12), skill->get_name(id), NAME_LENGTH); + WFIFOB(fd, len + 36) = (hd->homunculus.hskill[j].lv < homun->skill_tree_get_max(id, hd->homunculus.class_)) ? 1 : 0; + len += 37; + } } } WFIFOW(fd,2)=len; |