From 0eca88efc69becc591428fbb6b9fddd9237afd3d Mon Sep 17 00:00:00 2001 From: skotlex Date: Mon, 26 Feb 2007 04:09:58 +0000 Subject: - 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 --- src/map/map.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/map/map.c') 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); } } -- cgit v1.2.3-70-g09d2