summaryrefslogtreecommitdiff
path: root/src/map/map.c
diff options
context:
space:
mode:
authorzephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-03-29 17:54:30 +0000
committerzephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-03-29 17:54:30 +0000
commit77b25285e66e43ff2bc112d7a03dc02428adbc04 (patch)
tree8e5a92c37901f657f8348b0aa81580c656a27a70 /src/map/map.c
parent82bfe67b47a6f51242dec643334fb6b7e2cfaad6 (diff)
downloadhercules-77b25285e66e43ff2bc112d7a03dc02428adbc04.tar.gz
hercules-77b25285e66e43ff2bc112d7a03dc02428adbc04.tar.bz2
hercules-77b25285e66e43ff2bc112d7a03dc02428adbc04.tar.xz
hercules-77b25285e66e43ff2bc112d7a03dc02428adbc04.zip
- Fixed a visual bug in mail when sending Zeny.
- Fixed bug pet loosing loot on logout. Bug Report 1291. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12449 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/map.c')
-rw-r--r--src/map/map.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map/map.c b/src/map/map.c
index 8ca1ac5f1..c2260feef 100644
--- a/src/map/map.c
+++ b/src/map/map.c
@@ -1617,6 +1617,9 @@ int map_quit(struct map_session_data *sd)
}
}
+ // Return loot to owner
+ if( sd->pd ) pet_lootitem_drop(sd->pd, sd);
+
unit_remove_map_pc(sd,3);
pc_makesavestatus(sd);
pc_clean_skilltree(sd);