diff options
author | maximius <none@none> | 2009-09-14 16:02:13 -0700 |
---|---|---|
committer | maximius <none@none> | 2009-09-14 16:02:13 -0700 |
commit | b37f9b1e55bd4b80597b8b8c3f461aad70ccc5c1 (patch) | |
tree | c637055aab5d8f0e733fc611fada42c43ad04d83 /src/game/BattleGround.cpp | |
parent | 7b664c8c9fdda2b963f7883684a2f31d0f79551b (diff) |
*Merged MaNGOS [8458], [8475], [8476] by ogeraisi, thanks to all authors :)
--HG--
branch : trunk
Diffstat (limited to 'src/game/BattleGround.cpp')
-rw-r--r-- | src/game/BattleGround.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game/BattleGround.cpp b/src/game/BattleGround.cpp index 8ac19588b7c..7163a9874f8 100644 --- a/src/game/BattleGround.cpp +++ b/src/game/BattleGround.cpp @@ -1906,5 +1906,6 @@ WorldSafeLocsEntry const* BattleGround::GetClosestGraveYard( Player* player ) bool BattleGround::IsTeamScoreInRange(uint32 team, uint32 minScore, uint32 maxScore) const { BattleGroundTeamId team_idx = GetTeamIndexByTeamId(team); - return m_TeamScores[team_idx] >= minScore && m_TeamScores[team_idx] <= maxScore; + uint32 score = (m_TeamScores[team_idx] < 0) ? 0 : uint32(m_TeamScores[team_idx]); + return score >= minScore && score <= maxScore; } |