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.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map/unit.c b/src/map/unit.c
index 511ec86ce..19e01f2ea 100644
--- a/src/map/unit.c
+++ b/src/map/unit.c
@@ -1638,6 +1638,9 @@ int unit_free(struct block_list *bl) {
status_change_end(bl,SC_EXPLOSIONSPIRITS,-1);
}
}
+ if (sd->followtimer != -1)
+ pc_stop_following(sd);
+
// Notify friends that this char logged out. [Skotlex]
clif_foreachclient(clif_friendslist_toggle_sub, sd->status.account_id, sd->status.char_id, 0);
party_send_logout(sd);