aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Battlegrounds/Arena.cpp
diff options
context:
space:
mode:
authorJeremy <Golrag@users.noreply.github.com>2023-12-12 05:10:17 +0100
committerGitHub <noreply@github.com>2023-12-12 05:10:17 +0100
commitda0ec4f830c4428a17fd4e52124dca6c63e25961 (patch)
tree3bc8509ba1463359dacb5dcbca1c2f18ddd47057 /src/server/game/Battlegrounds/Arena.cpp
parentbe391380f3db48f9e7d81f11174cc8198590bd95 (diff)
Core/Battleground: Rework BattlegroundScore (#29438)
Diffstat (limited to 'src/server/game/Battlegrounds/Arena.cpp')
-rw-r--r--src/server/game/Battlegrounds/Arena.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/server/game/Battlegrounds/Arena.cpp b/src/server/game/Battlegrounds/Arena.cpp
index c5060c40ce6..6ec0f0f8c1e 100644
--- a/src/server/game/Battlegrounds/Arena.cpp
+++ b/src/server/game/Battlegrounds/Arena.cpp
@@ -17,6 +17,8 @@
#include "Arena.h"
#include "ArenaTeamMgr.h"
+#include "BattlegroundPackets.h"
+#include "BattlegroundScore.h"
#include "GuildMgr.h"
#include "Guild.h"
#include "Log.h"
@@ -41,10 +43,7 @@ Arena::Arena(BattlegroundTemplate const* battlegroundTemplate) : Battleground(ba
void Arena::AddPlayer(Player* player, BattlegroundQueueTypeId queueId)
{
- bool const isInBattleground = IsPlayerInBattleground(player->GetGUID());
Battleground::AddPlayer(player, queueId);
- if (!isInBattleground)
- PlayerScores[player->GetGUID()] = new ArenaScore(player->GetGUID(), player->GetBGTeam());
if (player->GetBGTeam() == ALLIANCE) // gold
{