mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +00:00
[7359] Fixed crash when removing battleground from BGFreeSlotQueue.
Fixed player will now drop a flag before he logs out, if he is in BG. Signed-off-by: Triply <triply@getmangos.com>
This commit is contained in:
parent
2791d5a6d3
commit
4994611582
3 changed files with 8 additions and 2 deletions
|
|
@ -302,6 +302,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())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue