diff options
author | Haru <haru@dotalux.com> | 2018-11-13 17:38:21 +0100 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2018-11-13 17:38:21 +0100 |
commit | 35ee16dd3908c021752e439a4fe4ea9e83af9ec0 (patch) | |
tree | d0de667fae7b066a61d793fa8b1fa421718f70cc /src/map/unit.c | |
parent | 1e5df06b8a23ea13c3fc1b07339c261a77600bae (diff) | |
download | hercules-35ee16dd3908c021752e439a4fe4ea9e83af9ec0.tar.gz hercules-35ee16dd3908c021752e439a4fe4ea9e83af9ec0.tar.bz2 hercules-35ee16dd3908c021752e439a4fe4ea9e83af9ec0.tar.xz hercules-35ee16dd3908c021752e439a4fe4ea9e83af9ec0.zip |
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 <haru@dotalux.com>
Diffstat (limited to 'src/map/unit.c')
-rw-r--r-- | src/map/unit.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); |