summaryrefslogtreecommitdiff
path: root/src/map/unit.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-06-30 13:53:13 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-06-30 13:53:13 +0000
commit15976eb40c2689d53d537ab425447eca572d9e7e (patch)
treefbabf9d6f2e9b87485babe28c19567d9e097d949 /src/map/unit.c
parent90cbdc408520d9902be4f67d29a3ebc7f8625c5b (diff)
downloadhercules-15976eb40c2689d53d537ab425447eca572d9e7e.tar.gz
hercules-15976eb40c2689d53d537ab425447eca572d9e7e.tar.bz2
hercules-15976eb40c2689d53d537ab425447eca572d9e7e.tar.xz
hercules-15976eb40c2689d53d537ab425447eca572d9e7e.zip
- Moved item group enumeration from itemdb.h to map.h
- Cleanup in itemheal related code, fixed the item heal group bonus not working on Groups beyond 7. - Fixed pet's loot not being moved to your inventory on logout. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7419 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/unit.c')
-rw-r--r--src/map/unit.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/map/unit.c b/src/map/unit.c
index 5137d5f71..304160fe8 100644
--- a/src/map/unit.c
+++ b/src/map/unit.c
@@ -1658,6 +1658,7 @@ int unit_free(struct block_list *bl) {
}
if (pd->loot)
{
+ pet_lootitem_drop(pd,sd);
if (pd->loot->item)
aFree(pd->loot->item);
aFree (pd->loot);