summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/map/clif.c2
-rw-r--r--src/map/map.c3
2 files changed, 4 insertions, 1 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 0d8a5803a..0940ea03b 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -2231,7 +2231,7 @@ int clif_updatestatus(struct map_session_data *sd,int type)
case SP_ZENY:
WFIFOW(fd,0)=0xb1;
- WFIFOL(fd,4)=sd->status.zeny - sd->mail.zeny;
+ WFIFOL(fd,4)=sd->status.zeny;
break;
case SP_BASEEXP:
WFIFOW(fd,0)=0xb1;
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);