From 35ee16dd3908c021752e439a4fe4ea9e83af9ec0 Mon Sep 17 00:00:00 2001 From: Haru Date: Tue, 13 Nov 2018 17:38:21 +0100 Subject: Replace sd->channels with a VECTOR This removes some shady array compaction code and prepares the ground for some further fixes. Signed-off-by: Haru --- src/map/unit.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/map/unit.c') diff --git a/src/map/unit.c b/src/map/unit.c index 9174bdccd..3c2574111 100644 --- a/src/map/unit.c +++ b/src/map/unit.c @@ -2764,6 +2764,7 @@ static int unit_free(struct block_list *bl, clr_type clrtype) aFree(sd->instance); sd->instance = NULL; } + VECTOR_CLEAR(sd->channels); VECTOR_CLEAR(sd->script_queues); VECTOR_CLEAR(sd->achievement); // Achievement [Smokexyz/Hercules] VECTOR_CLEAR(sd->storage.item); -- cgit v1.2.3-70-g09d2