Skip to content

Commit

Permalink
fix(Core/BG): Fix double method call on removing a player (azerothcor…
Browse files Browse the repository at this point in the history
  • Loading branch information
Nefertumm authored Oct 24, 2024
1 parent b5a8791 commit 47c61b2
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/server/game/Entities/Player/Player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11339,8 +11339,6 @@ void Player::LeaveBattleground(Battleground* bg)
if (bg->isArena() && (bg->GetStatus() == STATUS_IN_PROGRESS || bg->GetStatus() == STATUS_WAIT_JOIN))
sScriptMgr->OnBattlegroundDesertion(this, ARENA_DESERTION_TYPE_LEAVE_BG);

bg->RemovePlayerAtLeave(this);

// xinef: reset corpse reclaim time
m_deathExpireTime = GameTime::GetGameTime().count();

Expand Down

0 comments on commit 47c61b2

Please sign in to comment.