summaryrefslogtreecommitdiff
path: root/src/map/map.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-02-26 04:09:58 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-02-26 04:09:58 +0000
commit0eca88efc69becc591428fbb6b9fddd9237afd3d (patch)
treeb1784b3698c04668520e4b22ea265034b765db76 /src/map/map.c
parent7c4b730c6d8a0201512148fcb795c0f666bfe8c8 (diff)
downloadhercules-0eca88efc69becc591428fbb6b9fddd9237afd3d.tar.gz
hercules-0eca88efc69becc591428fbb6b9fddd9237afd3d.tar.bz2
hercules-0eca88efc69becc591428fbb6b9fddd9237afd3d.tar.xz
hercules-0eca88efc69becc591428fbb6b9fddd9237afd3d.zip
- indent cleanups
- Fixed Self Destruction causing double-free'd errors and triggering twice when a self-destruct cast makes other objects trigger self destruct as well git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9924 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/map.c')
-rw-r--r--src/map/map.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/map.c b/src/map/map.c
index 02d3bbdeb..1ea7498f5 100644
--- a/src/map/map.c
+++ b/src/map/map.c
@@ -1695,6 +1695,8 @@ int map_quit(struct map_session_data *sd) {
unit_remove_map(&sd->bl, 0);
if (sd->pd && sd->pd->bl.prev != NULL)
unit_remove_map(&sd->pd->bl, 0);
+ if (sd->hd && sd->hd->bl.prev != NULL)
+ unit_remove_map(&sd->hd->bl, 0);
}
}