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 8, 2024
1 parent 0344077 commit 17eff1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game/BattleGround/BattleGroundAV.cpp
Original file line number Diff line number Diff line change
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 17eff1e

Please sign in to comment.