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/pc.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/map/pc.c') diff --git a/src/map/pc.c b/src/map/pc.c index b8a6912ee..282eb7112 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -1330,6 +1330,7 @@ static bool pc_authok(struct map_session_data *sd, int login_id2, time_t expirat sd->bg_queue.client_has_bg_data = 0; sd->bg_queue.type = 0; + VECTOR_INIT(sd->channels); VECTOR_INIT(sd->script_queues); VECTOR_INIT(sd->achievement); // Achievements [Smokexyz/Hercules] VECTOR_INIT(sd->storage.item); // initialize storage item vector. -- cgit v1.2.3-70-g09d2