diff options
author | zephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-04-11 00:42:34 +0000 |
---|---|---|
committer | zephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-04-11 00:42:34 +0000 |
commit | 773729d995cc32f98e87f6996b210ff6a2cc8d96 (patch) | |
tree | 9d4e8ffba12a890a1c7edb8bc46a921881983fc7 | |
parent | 87d21f1ceb411f3610a4abcb1a2e8a9af399d13b (diff) | |
download | hercules-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
-rw-r--r-- | src/map/chrif.c | 2 |
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); |