diff options
Diffstat (limited to 'src/map/npc.c')
-rw-r--r-- | src/map/npc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/npc.c b/src/map/npc.c index 4278d8d27..f68fa4e49 100644 --- a/src/map/npc.c +++ b/src/map/npc.c @@ -1381,7 +1381,7 @@ int npc_unload (struct npc_data *nd) aFree(nd->u.scr.timer_event);
if (nd->u.scr.src_id == 0) {
if(nd->u.scr.script) {
- aFree(nd->u.scr.script);
+ script_free_code(nd->u.scr.script);
nd->u.scr.script = NULL;
}
if (nd->u.scr.label_list) {
|