summaryrefslogtreecommitdiff
path: root/src/map/unit.c
diff options
context:
space:
mode:
authorzephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-07-29 09:10:51 +0000
committerzephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-07-29 09:10:51 +0000
commitec12f70e64fdd12235f74d9708332be0ff8c2683 (patch)
treeaec85700e214fed923b3b0c5755a5fcf789193b4 /src/map/unit.c
parent94f3da9dd8cb31ab928b62c44e076080ade23b8b (diff)
downloadhercules-ec12f70e64fdd12235f74d9708332be0ff8c2683.tar.gz
hercules-ec12f70e64fdd12235f74d9708332be0ff8c2683.tar.bz2
hercules-ec12f70e64fdd12235f74d9708332be0ff8c2683.tar.xz
hercules-ec12f70e64fdd12235f74d9708332be0ff8c2683.zip
- Fixed a bug cleaning instance variable on party when instance is destroy.
- Fixed a bug on Yuno Castle 2 and 3, not killing guardians. - Moved battleground team leave on unit remove map to prevent a crash on multimap servers. - Fixed a bug on checking range with the wrong target. Fix a crash on Item 2002 at refine >= 9. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13979 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/unit.c')
-rw-r--r--src/map/unit.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/map/unit.c b/src/map/unit.c
index 4fce9b2d7..f19eb4d4a 100644
--- a/src/map/unit.c
+++ b/src/map/unit.c
@@ -1976,6 +1976,7 @@ int unit_free(struct block_list *bl, int clrtype)
guild_send_memberinfoshort(sd,0);
pc_cleareventtimer(sd);
pc_inventory_rental_clear(sd);
+ if( sd->state.bg_id ) bg_team_leave(sd,1);
pc_delspiritball(sd,sd->spiritball,1);
if( sd->reg )