fix(Core/BG): store correct faction id (#10576)

This commit is contained in:
Francesco Borzì
2022-02-09 10:20:55 +01:00
committed by GitHub
parent 50ef9872af
commit 65a1fbfd35
3 changed files with 14 additions and 2 deletions

View File

@@ -241,7 +241,7 @@ void BattlegroundMgr::BuildPvpLogDataPacket(WorldPacket* data, Battleground* bg)
else
{
*data << uint8(1); // bg ended
*data << uint8(bg->GetWinner() == TEAM_ALLIANCE ? TEAM_HORDE : TEAM_ALLIANCE); // who win
*data << uint8(GetPvPTeamId(bg->GetWinner())); // who win
}
size_t wpos = data->wpos();