summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index b8feb6746..3c1851309 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -738,17 +738,17 @@ int clif_clearunit_area(struct block_list* bl, clr_type type)
static int clif_clearunit_delayed_sub(int tid, unsigned int tick, int id, intptr_t data)
{
struct block_list *bl = (struct block_list *)data;
- clif_clearunit_area(bl, CLR_OUTSIGHT);
+ clif_clearunit_area(bl, (clr_type) id);
aFree(bl);
return 0;
}
-int clif_clearunit_delayed(struct block_list* bl, unsigned int tick)
+int clif_clearunit_delayed(struct block_list* bl, clr_type type, unsigned int tick)
{
struct block_list *tbl;
tbl = (struct block_list*)aMalloc(sizeof (struct block_list));
memcpy (tbl, bl, sizeof (struct block_list));
- add_timer(tick, clif_clearunit_delayed_sub, 0, (intptr_t)tbl);
+ add_timer(tick, clif_clearunit_delayed_sub, (int)type, (intptr_t)tbl);
return 0;
}