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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 81902f4e4..46e9c0fb9 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -633,7 +633,7 @@ int clif_clearunit_area(struct block_list* bl, uint8 type)
static int clif_clearunit_delayed_sub(int tid, unsigned int tick, int id, intptr data)
{
- struct block_list *bl = (struct block_list *)id;
+ struct block_list *bl = (struct block_list *)data;
clif_clearunit_area(bl, 0);
aFree(bl);
return 0;
@@ -644,7 +644,7 @@ int clif_clearunit_delayed(struct block_list* bl, 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, (int)tbl, 0);
+ add_timer(tick, clif_clearunit_delayed_sub, 0, (intptr)tbl);
return 0;
}