Skip to content

Commit

Permalink
Possible crash fix for delayed removing mobs with player looks
Browse files Browse the repository at this point in the history
  • Loading branch information
4144 committed May 9, 2020
1 parent 7a61734 commit f9fafdb
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/map/clif.c
Original file line number Diff line number Diff line change
Expand Up @@ -943,11 +943,10 @@ static int clif_clearunit_delayed_sub(int tid, int64 tick, int id, intptr_t data

static void clif_clearunit_delayed(struct block_list *bl, enum clr_type type, int64 tick)
{
struct block_list *tbl;

nullpo_retv(bl);
tbl = ers_alloc(clif->delay_clearunit_ers, struct block_list);
memcpy (tbl, bl, sizeof (struct block_list));
Assert_retv(bl->type == BL_MOB);
struct block_list *tbl = ers_alloc(clif->delay_clearunit_ers, struct mob_data);
memcpy (tbl, bl, sizeof (struct mob_data));
timer->add(tick, clif->clearunit_delayed_sub, (int)type, (intptr_t)tbl);
}

Expand Down

0 comments on commit f9fafdb

Please sign in to comment.