summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/map/clif.c6
-rw-r--r--src/map/pc.c3
2 files changed, 2 insertions, 7 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 81b10b7e2..3ecb8acba 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -2220,12 +2220,6 @@ void clif_delitem(struct map_session_data *sd,int n,int amount, short reason)
nullpo_retv(sd);
- if (reason == 7)
- {
- clif_dropitem(sd,n,amount);
- return;
- }
-
fd=sd->fd;
WFIFOHEAD(fd, packet_len(0x7fa));
diff --git a/src/map/pc.c b/src/map/pc.c
index 138efc636..ca9fbf4f2 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -3745,7 +3745,8 @@ int pc_dropitem(struct map_session_data *sd,int n,int amount)
if (!map_addflooritem(&sd->status.inventory[n], amount, sd->bl.m, sd->bl.x, sd->bl.y, 0, 0, 0, 2))
return 0;
- pc_delitem(sd, n, amount, 0, 7, LOG_TYPE_PICKDROP_PLAYER);
+ pc_delitem(sd, n, amount, 1, 0, LOG_TYPE_PICKDROP_PLAYER);
+ clif_dropitem(sd, n, amount);
return 1;
}