summaryrefslogtreecommitdiff
path: root/src/char/char.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-08-15 19:44:22 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-08-15 19:44:22 +0000
commit7b19af9f7c8ea99216f1a7f5c92a8122010b0631 (patch)
tree9db73bc3461b78773c5af99bb986c1eb02b2c756 /src/char/char.c
parent8a215272209c0d486fa6eb400825bec43287b9b6 (diff)
downloadhercules-7b19af9f7c8ea99216f1a7f5c92a8122010b0631.tar.gz
hercules-7b19af9f7c8ea99216f1a7f5c92a8122010b0631.tar.bz2
hercules-7b19af9f7c8ea99216f1a7f5c92a8122010b0631.tar.xz
hercules-7b19af9f7c8ea99216f1a7f5c92a8122010b0631.zip
- Some cleanup of int_homun.c
- Added homun saving/loading support to char-TXT. Note that this is completely untested, so it may be as good as broken. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8299 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/char/char.c')
-rw-r--r--src/char/char.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/char/char.c b/src/char/char.c
index 165f09bea..2ae226ca1 100644
--- a/src/char/char.c
+++ b/src/char/char.c
@@ -34,6 +34,7 @@
#include "char.h"
#include "inter.h"
#include "int_pet.h"
+#include "int_homun.h"
#include "int_guild.h"
#include "int_party.h"
#include "int_storage.h"
@@ -1853,6 +1854,8 @@ static int char_delete(struct mmo_charstatus *cs) {
// ybg폜
if (cs->pet_id)
inter_pet_delete(cs->pet_id);
+ if (cs->hom_id)
+ inter_homun_delete(cs->hom_id);
for (j = 0; j < MAX_INVENTORY; j++)
if (cs->inventory[j].card[0] == (short)0xff00)
inter_pet_delete(MakeDWord(cs->inventory[j].card[1],cs->inventory[j].card[2]));