summaryrefslogtreecommitdiff
path: root/src/map/unit.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/unit.c')
-rw-r--r--src/map/unit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/unit.c b/src/map/unit.c
index 4a8a87920..36f3eab45 100644
--- a/src/map/unit.c
+++ b/src/map/unit.c
@@ -2367,7 +2367,7 @@ int unit_free(struct block_list *bl, clr_type clrtype)
sd->regstr_num = 0;
}
if( sd->st && sd->st->state != RUN ) {// free attached scripts that are waiting
- script_free_state(sd->st);
+ script->free_state(sd->st);
sd->st = NULL;
sd->npc_id = 0;
}