Skip to content

Commit

Permalink
Fix mistake when updating score in Alterac Valley
Browse files Browse the repository at this point in the history
  • Loading branch information
Karth-Xyver authored and killerwife committed Jan 3, 2024
1 parent a77ea14 commit bd23c93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game/BattleGround/BattleGroundAV.cpp
Expand Up @@ -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)
{
Expand Down

0 comments on commit bd23c93

Please sign in to comment.