summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 2dd33af10..bdabb0152 100644
--- a/src/map/unit.c
+++ b/src/map/unit.c
@@ -2180,6 +2180,8 @@ void unit_remove_map_pc(struct map_session_data *sd, clr_type clrtype)
unit_remove_map(&sd->hd->bl, clrtype);
if(sd->md)
unit_remove_map(&sd->md->bl, clrtype);
+ if(sd->ed)
+ unit_remove_map(&sd->ed->bl, clrtype);
}
void unit_free_pc(struct map_session_data *sd)
@@ -2187,6 +2189,7 @@ void unit_free_pc(struct map_session_data *sd)
if (sd->pd) unit_free(&sd->pd->bl,CLR_OUTSIGHT);
if (sd->hd) unit_free(&sd->hd->bl,CLR_OUTSIGHT);
if (sd->md) unit_free(&sd->md->bl,CLR_OUTSIGHT);
+ if (sd->ed) unit_free(&sd->ed->bl,CLR_OUTSIGHT);
unit_free(&sd->bl,CLR_TELEPORT);
}