diff options
Diffstat (limited to 'src/map/unit.c')
-rw-r--r-- | src/map/unit.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/map/unit.c b/src/map/unit.c index da1ce1c14..3cec43f70 100644 --- a/src/map/unit.c +++ b/src/map/unit.c @@ -17,6 +17,7 @@ #include "mercenary.h" #include "skill.h" #include "clif.h" +#include "duel.h" #include "npc.h" #include "guild.h" #include "status.h" @@ -2067,7 +2068,7 @@ int unit_free(struct block_list *bl, clr_type clrtype) guild_send_memberinfoshort(sd,0); pc_cleareventtimer(sd); pc_inventory_rental_clear(sd); - if( sd->state.bg_id ) bg_team_leave(sd,1); + if( sd->bg_id ) bg_team_leave(sd,1); pc_delspiritball(sd,sd->spiritball,1); if( sd->reg ) |