summaryrefslogtreecommitdiff
path: root/src/map/map.c
diff options
context:
space:
mode:
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);