Skip to content

Commit 47c61b2

Browse files
authored
fix(Core/BG): Fix double method call on removing a player (azerothcore#20156)
1 parent b5a8791 commit 47c61b2

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/server/game/Entities/Player/Player.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11339,8 +11339,6 @@ void Player::LeaveBattleground(Battleground* bg)
1133911339
if (bg->isArena() && (bg->GetStatus() == STATUS_IN_PROGRESS || bg->GetStatus() == STATUS_WAIT_JOIN))
1134011340
sScriptMgr->OnBattlegroundDesertion(this, ARENA_DESERTION_TYPE_LEAVE_BG);
1134111341

11342-
bg->RemovePlayerAtLeave(this);
11343-
1134411342
// xinef: reset corpse reclaim time
1134511343
m_deathExpireTime = GameTime::GetGameTime().count();
1134611344

0 commit comments

Comments
 (0)