diff options
author | megamage <none@none> | 2009-03-02 16:46:43 -0600 |
---|---|---|
committer | megamage <none@none> | 2009-03-02 16:46:43 -0600 |
commit | f503f320ad6db899cb966fadd5757c71d0c005b1 (patch) | |
tree | 40d138558f1662fbdef82da39a7a502032da5ce6 /src/game/WorldSession.cpp | |
parent | e73d01182f74110372655d29787dc73de6efedbc (diff) |
[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
Diffstat (limited to 'src/game/WorldSession.cpp')
-rw-r--r-- | src/game/WorldSession.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/game/WorldSession.cpp b/src/game/WorldSession.cpp index bfe9946e7d3..70a864229ea 100644 --- a/src/game/WorldSession.cpp +++ b/src/game/WorldSession.cpp @@ -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()) |