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 e52d60782..521907c99 100644
--- a/src/map/unit.c
+++ b/src/map/unit.c
@@ -1870,7 +1870,7 @@ int unit_free(struct block_list *bl, int clrtype)
//Tell the script to end, not delete it, it will free itself when necessary [Kevin]
if (sd->st) {
sd->st->rid = 0;
- sd->st->state = 2;
+ sd->st->state = END;
}
} else if( bl->type == BL_PET ) {
struct pet_data *pd = (struct pet_data*)bl;