|
@@ -1006,7 +1006,13 @@ static TIMER_FUNC(clif_clearunit_delayed_sub){
|
|
void clif_clearunit_delayed(struct block_list* bl, clr_type type, t_tick tick)
|
|
void clif_clearunit_delayed(struct block_list* bl, clr_type type, t_tick tick)
|
|
{
|
|
{
|
|
struct block_list *tbl = ers_alloc(delay_clearunit_ers, struct block_list);
|
|
struct block_list *tbl = ers_alloc(delay_clearunit_ers, struct block_list);
|
|
- memcpy (tbl, bl, sizeof (struct block_list));
|
|
|
|
|
|
+ tbl->next = nullptr;
|
|
|
|
+ tbl->prev = nullptr;
|
|
|
|
+ tbl->id = bl->id;
|
|
|
|
+ tbl->m = bl->m;
|
|
|
|
+ tbl->x = bl->x;
|
|
|
|
+ tbl->y = bl->y;
|
|
|
|
+ tbl->type = BL_NUL;
|
|
add_timer(tick, clif_clearunit_delayed_sub, (int)type, (intptr_t)tbl);
|
|
add_timer(tick, clif_clearunit_delayed_sub, (int)type, (intptr_t)tbl);
|
|
}
|
|
}
|
|
|
|
|