Core/Groups: Move scattered group object deletion to Disband()

This commit is contained in:
leak
2011-02-22 16:52:38 +01:00
parent 1cdec5880e
commit 09bac61e42
4 changed files with 14 additions and 19 deletions
@@ -1034,7 +1034,6 @@ void Battleground::RemovePlayerAtLeave(uint64 guid, bool Transport, bool SendPac
if (!group->RemoveMember(guid)) // group was disbanded
{
SetBgRaid(team, NULL);
delete group;
}
}
DecreaseInvitedCount(team);