summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorzephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-04-11 00:42:34 +0000
committerzephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-04-11 00:42:34 +0000
commit773729d995cc32f98e87f6996b210ff6a2cc8d96 (patch)
tree9d4e8ffba12a890a1c7edb8bc46a921881983fc7 /src
parent87d21f1ceb411f3610a4abcb1a2e8a9af399d13b (diff)
downloadhercules-773729d995cc32f98e87f6996b210ff6a2cc8d96.tar.gz
hercules-773729d995cc32f98e87f6996b210ff6a2cc8d96.tar.bz2
hercules-773729d995cc32f98e87f6996b210ff6a2cc8d96.tar.xz
hercules-773729d995cc32f98e87f6996b210ff6a2cc8d96.zip
- Fixed a bug in de-adopt code (parent skills need to be removed).
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12555 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r--src/map/chrif.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/chrif.c b/src/map/chrif.c
index 9b38a642e..78b8c1733 100644
--- a/src/map/chrif.c
+++ b/src/map/chrif.c
@@ -892,6 +892,7 @@ int chrif_deadopt(int father_id, int mother_id, int child_id)
if( father_id && (sd = map_charid2sd(father_id)) != NULL && sd->status.child == child_id )
{
sd->status.child = 0;
+ sd->status.skill[410].id = 0;
sd->status.skill[410].lv = 0;
sd->status.skill[410].flag = 0;
clif_skillinfoblock(sd);
@@ -900,6 +901,7 @@ int chrif_deadopt(int father_id, int mother_id, int child_id)
if( mother_id && (sd = map_charid2sd(mother_id)) != NULL && sd->status.child == child_id )
{
sd->status.child = 0;
+ sd->status.skill[410].id = 0;
sd->status.skill[410].lv = 0;
sd->status.skill[410].flag = 0;
clif_skillinfoblock(sd);