diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-09-24 15:54:25 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-09-24 15:55:01 +0300 |
commit | 276a84c7de26e9bdc3e89dfc5bd4bdc5c61ed77d (patch) | |
tree | e119fd0f5f53a583f0ad7455ad3959a43d188ab4 /src/map/mob.c | |
parent | 7a867315dac6aaf78a4d61ea67174820a4d30c59 (diff) | |
download | hercules-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/mob.c')
-rw-r--r-- | src/map/mob.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/mob.c b/src/map/mob.c index 2bc0ba112..b1f6e8c61 100644 --- a/src/map/mob.c +++ b/src/map/mob.c @@ -1819,7 +1819,7 @@ int mob_delay_item_drop(int tid, int64 tick, int id, intptr_t data) { ditem = list->item; while (ditem) { struct item_drop *ditem_prev; - map->addflooritem(&ditem->item_data,ditem->item_data.amount, + map->addflooritem(NULL, &ditem->item_data,ditem->item_data.amount, list->m,list->x,list->y, list->first_charid,list->second_charid,list->third_charid,0); ditem_prev = ditem; @@ -2543,7 +2543,7 @@ int mob_dead(struct mob_data *md, struct block_list *src, int type) { if((temp = pc->additem(mvp_sd,&item,1,LOG_TYPE_PICKDROP_PLAYER)) != 0) { clif->additem(mvp_sd,0,0,temp); - map->addflooritem(&item,1,mvp_sd->bl.m,mvp_sd->bl.x,mvp_sd->bl.y,mvp_sd->status.char_id,(second_sd?second_sd->status.char_id:0),(third_sd?third_sd->status.char_id:0),1); + map->addflooritem(&md->bl, &item, 1, mvp_sd->bl.m, mvp_sd->bl.x, mvp_sd->bl.y, mvp_sd->status.char_id, (second_sd?second_sd->status.char_id : 0), (third_sd ? third_sd->status.char_id : 0), 1); } //Logs items, MVP prizes [Lupus] |