From d8edfe7eb9e7d86da24c87198f03432b73e72284 Mon Sep 17 00:00:00 2001 From: Haru Date: Mon, 14 Sep 2015 16:21:12 +0200 Subject: Changed struct map_session_data::queues into a VECTOR and renamed to ::script_queues Signed-off-by: Haru --- src/map/unit.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/map/unit.c') diff --git a/src/map/unit.c b/src/map/unit.c index 7c253c5c2..3046db9e1 100644 --- a/src/map/unit.c +++ b/src/map/unit.c @@ -2645,10 +2645,7 @@ int unit_free(struct block_list *bl, clr_type clrtype) { aFree(sd->instance); sd->instance = NULL; } - if( sd->queues != NULL ) { - aFree(sd->queues); - sd->queues = NULL; - } + VECTOR_CLEAR(sd->script_queues); if( sd->quest_log != NULL ) { aFree(sd->quest_log); sd->quest_log = NULL; -- cgit v1.2.3-70-g09d2