From f59f7d2a2ef3d0df7657263e81808d87266aeba0 Mon Sep 17 00:00:00 2001 From: balrok Date: Wed, 21 Oct 2009 21:37:20 +0200 Subject: [PATCH] [8700] fixed very high reputation in alterac valley bug happened when one team owned a mine at the end of the match and is caused through an uninitalized variable through that players could gain or lose _very_ much reputation sorry :x --- src/game/BattleGroundAV.cpp | 3 ++- src/shared/revision_nr.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/game/BattleGroundAV.cpp b/src/game/BattleGroundAV.cpp index d66da6736..e0e7f7198 100644 --- a/src/game/BattleGroundAV.cpp +++ b/src/game/BattleGroundAV.cpp @@ -336,7 +336,7 @@ void BattleGroundAV::EndBattleGround(uint32 winner) // now we have the values give the honor/reputation to the teams: uint32 team[BG_TEAMS_COUNT] = { ALLIANCE, HORDE }; uint32 faction[BG_TEAMS_COUNT] = { BG_AV_FACTION_A, BG_AV_FACTION_H }; - for(uint32 i = 0; i < BG_TEAMS_COUNT; i++) + for (uint32 i = 0; i < BG_TEAMS_COUNT; i++) { if (tower_survived[i]) { @@ -800,6 +800,7 @@ void BattleGroundAV::Reset() m_RepOwnedGrave = (isBGWeekend) ? BG_AV_REP_OWNED_GRAVE_HOLIDAY : BG_AV_REP_OWNED_GRAVE; m_RepSurviveCaptain = (isBGWeekend) ? BG_AV_REP_SURVIVING_CAPTAIN_HOLIDAY : BG_AV_REP_SURVIVING_CAPTAIN; m_RepSurviveTower = (isBGWeekend) ? BG_AV_REP_SURVIVING_TOWER_HOLIDAY : BG_AV_REP_SURVIVING_TOWER; + m_RepOwnedMine = (isBGWeekend) ? BG_AV_REP_OWNED_MINE_HOLIDAY : BG_AV_REP_OWNED_MINE; for(uint8 i = 0; i < BG_TEAMS_COUNT; i++) { diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 520f42ada..40114edfa 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "8699" + #define REVISION_NR "8700" #endif // __REVISION_NR_H__