From 17eff1e96f1bbda7af1666b753e77a48ee483c78 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 3bee3b0d4d..da558aaf04 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) {