aboutsummaryrefslogtreecommitdiff
path: root/src/game/Group.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-03-14 20:06:00 -0600
committermegamage <none@none>2009-03-14 20:06:00 -0600
commit47b39981a1693ba931743c0ac1d4e092ec62a2d8 (patch)
treeb63e0ecb172d7d40d0d01701db7472a83bee5651 /src/game/Group.cpp
parentad8675a5474d6f550bd064a3de3fb2e27fe32374 (diff)
[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
Diffstat (limited to 'src/game/Group.cpp')
-rw-r--r--src/game/Group.cpp19
1 files changed, 8 insertions, 11 deletions
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