summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-09-24 15:54:25 +0300
committerAndrei Karas <akaras@inbox.ru>2015-09-24 15:55:01 +0300
commit276a84c7de26e9bdc3e89dfc5bd4bdc5c61ed77d (patch)
treee119fd0f5f53a583f0ad7455ad3959a43d188ab4 /src/map/pc.c
parent7a867315dac6aaf78a4d61ea67174820a4d30c59 (diff)
downloadhercules-276a84c7de26e9bdc3e89dfc5bd4bdc5c61ed77d.tar.gz
hercules-276a84c7de26e9bdc3e89dfc5bd4bdc5c61ed77d.tar.bz2
hercules-276a84c7de26e9bdc3e89dfc5bd4bdc5c61ed77d.tar.xz
hercules-276a84c7de26e9bdc3e89dfc5bd4bdc5c61ed77d.zip
Add bl parameter to map_searchrandfreecell and map_addflooritem.
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index ca60261d1..cc4b598bd 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -4609,7 +4609,7 @@ int pc_dropitem(struct map_session_data *sd,int n,int amount)
return 0;
}
- if (!map->addflooritem(&sd->status.inventory[n], amount, sd->bl.m, sd->bl.x, sd->bl.y, 0, 0, 0, 2))
+ if (!map->addflooritem(&sd->bl, &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, 1, DELITEM_NORMAL, LOG_TYPE_PICKDROP_PLAYER);
@@ -7689,7 +7689,7 @@ int pc_dead(struct map_session_data *sd,struct block_list *src) {
item_tmp.card[1]=0;
item_tmp.card[2]=GetWord(sd->status.char_id,0); // CharId
item_tmp.card[3]=GetWord(sd->status.char_id,1);
- map->addflooritem(&item_tmp,1,sd->bl.m,sd->bl.x,sd->bl.y,0,0,0,0);
+ map->addflooritem(&sd->bl, &item_tmp, 1, sd->bl.m, sd->bl.x, sd->bl.y, 0, 0, 0, 0);
}
// activate Steel body if a super novice dies at 99+% exp [celest]