summaryrefslogtreecommitdiff
path: root/src/map/unit.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-07-21 23:45:53 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-07-21 23:45:53 +0000
commit72fc9343c79775d3c9df910ce78f5b0ee274cb81 (patch)
treef0a39b82973db0fd83c29587fda957276e95dcc1 /src/map/unit.c
parentd64c6ba4231c3802ba478c45ebb3b4fda4d8ed83 (diff)
downloadhercules-72fc9343c79775d3c9df910ce78f5b0ee274cb81.tar.gz
hercules-72fc9343c79775d3c9df910ce78f5b0ee274cb81.tar.bz2
hercules-72fc9343c79775d3c9df910ce78f5b0ee274cb81.tar.xz
hercules-72fc9343c79775d3c9df910ce78f5b0ee274cb81.zip
- Corrected the @follow timer not being deleted on logout.
- Applied the homunculus code fixes provided by Toms. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7820 54d463be-8e91-2dee-dedb-b68131a5f0ec
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);