summaryrefslogtreecommitdiff
path: root/src/map/unit.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2015-09-14 16:21:12 +0200
committerHaru <haru@dotalux.com>2015-11-14 21:13:54 +0100
commitd8edfe7eb9e7d86da24c87198f03432b73e72284 (patch)
tree5f297cb815897d1b73b790b7ffc19cd8d82a46f8 /src/map/unit.c
parent1d064776214d3f962b9af585555cca686906665a (diff)
downloadhercules-d8edfe7eb9e7d86da24c87198f03432b73e72284.tar.gz
hercules-d8edfe7eb9e7d86da24c87198f03432b73e72284.tar.bz2
hercules-d8edfe7eb9e7d86da24c87198f03432b73e72284.tar.xz
hercules-d8edfe7eb9e7d86da24c87198f03432b73e72284.zip
Changed struct map_session_data::queues into a VECTOR and renamed to ::script_queues
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/unit.c')
-rw-r--r--src/map/unit.c5
1 files changed, 1 insertions, 4 deletions
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;