diff options
Diffstat (limited to 'src/map/npc.c')
-rw-r--r-- | src/map/npc.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/map/npc.c b/src/map/npc.c index 17ba64984..fd44ded3a 100644 --- a/src/map/npc.c +++ b/src/map/npc.c @@ -163,9 +163,7 @@ int npc_event_dequeue(struct map_session_data* sd) sd->state.using_fake_npc = 0; } if (sd->st) { - sd->st->pos = -1; - script_free_stack(sd->st->stack); - aFree(sd->st); + script_free_state(sd->st); sd->st = NULL; } sd->npc_id = 0; |