From bd23c937d271e3351f8e9f7ac3442202e0e9d043 Mon Sep 17 00:00:00 2001 From: Karth <148375244+Karth-Xyver@users.noreply.github.com> Date: Wed, 3 Jan 2024 13:33:04 +0100 Subject: [PATCH] Fix mistake when updating score in Alterac Valley --- src/game/BattleGround/BattleGroundAV.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/BattleGround/BattleGroundAV.cpp b/src/game/BattleGround/BattleGroundAV.cpp index c197b1a8aa7..0f8b18690e8 100644 --- a/src/game/BattleGround/BattleGroundAV.cpp +++ b/src/game/BattleGround/BattleGroundAV.cpp @@ -273,7 +273,7 @@ void BattleGroundAV::UpdateScore(PvpTeamIndex teamIdx, int32 points) // note: to remove reinforcements points must be negative, for adding reinforcements points must be positive int32 newVal = std::max(GetBgMap()->GetVariableManager().GetVariable(worldStateId) + points, 0); - GetBgMap()->GetVariableManager().SetVariable(BG_AV_STATE_SCORE_A, newVal); + GetBgMap()->GetVariableManager().SetVariable(worldStateId, newVal); if (points < 0) {