summaryrefslogtreecommitdiff
path: root/src/map/mercenary.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-01-20 08:14:40 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-01-20 08:14:40 +0000
commit8f1cae217b2ddf1d893ab4dd7456f8c7f4f5dcac (patch)
treede6ff214d370dd184eb07386393ca1dc19ca8e2e /src/map/mercenary.c
parentce4bf096296c2e96d506901a6273a3a47071f74c (diff)
downloadhercules-8f1cae217b2ddf1d893ab4dd7456f8c7f4f5dcac.tar.gz
hercules-8f1cae217b2ddf1d893ab4dd7456f8c7f4f5dcac.tar.bz2
hercules-8f1cae217b2ddf1d893ab4dd7456f8c7f4f5dcac.tar.xz
hercules-8f1cae217b2ddf1d893ab4dd7456f8c7f4f5dcac.zip
- Updated merc_reset_stats to handle resetting skill tree and points as well.
- Updated @homshuffle so that the skill tree and current skill points are not messed up. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9678 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/mercenary.c')
-rw-r--r--src/map/mercenary.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/mercenary.c b/src/map/mercenary.c
index 61df02132..b776ed4b5 100644
--- a/src/map/mercenary.c
+++ b/src/map/mercenary.c
@@ -748,6 +748,8 @@ void merc_reset_stats(struct homun_data *hd)
hom->luk = db->baseLUK*10;
hom->exp = 0;
hd->exp_next = hexptbl[0];
+ memset(&hd->homunculus.hskill, 0, sizeof hd->homunculus.hskill);
+ hd->homunculus.skillpts = 0;
}
int read_homunculusdb(void)