From 47b39981a1693ba931743c0ac1d4e092ec62a2d8 Mon Sep 17 00:00:00 2001 From: megamage Date: Sat, 14 Mar 2009 20:06:00 -0600 Subject: [7457] Fixed set Bg raid leader to party or raid leader who entered Bg. Author: Triply Removed useless code from my previous patch. --HG-- branch : trunk --- src/game/Group.cpp | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) (limited to 'src/game/Group.cpp') diff --git a/src/game/Group.cpp b/src/game/Group.cpp index dca1a5ad9b8..f4a977c3d7c 100644 --- a/src/game/Group.cpp +++ b/src/game/Group.cpp @@ -390,19 +390,16 @@ void Group::Disband(bool hideDestroy) continue; //we cannot call _removeMember because it would invalidate member iterator - if (player) + //if we are removing player from battleground raid + if( isBGGroup() ) + player->RemoveFromBattleGroundRaid(); + else { - //if we are removing player from battleground raid - if( isBGGroup() ) - player->RemoveFromBattleGroundRaid(); + //we can remove player who is in battleground from his original group + if( player->GetOriginalGroup() == this ) + player->SetOriginalGroup(NULL); else - { - //we can remove player who is in battleground from his original group - if( player->GetOriginalGroup() == this ) - player->SetOriginalGroup(NULL); - else - player->SetGroup(NULL); - } + player->SetGroup(NULL); } // quest related GO state dependent from raid membership -- cgit v1.2.3