[7359] Fixed crash when removing battleground from BGFreeSlotQueue. Author: Triply
Fixed player will now drop a flag before he logs out, if he is in BG. --HG-- branch : trunk
This commit is contained in:
1 parent
e73d01182f
commit
f503f320ad
3 files changed
+8
-2
No files matched your search
@@ -305,6 +305,9 @@ void WorldSession::LogoutPlayer(bool Save)
|
||||
_player->BuildPlayerRepop();
|
||||
_player->RepopAtGraveyard();
|
||||
}
|
||||
//drop a flag if player is carrying it
|
||||
if(BattleGround *bg = _player->GetBattleGround())
|
||||
bg->EventPlayerDroppedFlag(_player);
|
||||
|
||||
///- Teleport to home if the player is in an invalid instance
|
||||
if(!_player->m_InstanceValid && !_player->isGameMaster())
|
||||
|
||||
Reference in new issue
Block a user