aboutsummaryrefslogtreecommitdiff
path: root/src/game/BattleGroundMgr.cpp
diff options
context:
space:
mode:
authormaximius <none@none>2009-09-30 04:18:07 -0700
committermaximius <none@none>2009-09-30 04:18:07 -0700
commit3c43ef715754ba2762b7e4c9006957074c84366d (patch)
tree6ef1e024e01946f532c970e6d46d377d084a8588 /src/game/BattleGroundMgr.cpp
parent57370773711ee8270765e73bebe34ff1ca92e43f (diff)
*Better support for negatives.
--HG-- branch : trunk
Diffstat (limited to 'src/game/BattleGroundMgr.cpp')
-rw-r--r--src/game/BattleGroundMgr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/BattleGroundMgr.cpp b/src/game/BattleGroundMgr.cpp
index ec67d2f5d54..b7b436790fa 100644
--- a/src/game/BattleGroundMgr.cpp
+++ b/src/game/BattleGroundMgr.cpp
@@ -1833,7 +1833,7 @@ void BattleGroundMgr::DistributeArenaPoints()
{
CharacterDatabase.PExecute("UPDATE characters SET arena_pending_points = 0 WHERE guid = '%u'", plr_itr->first);
CharacterDatabase._UpdateDataBlobValue(plr_itr->first, PLAYER_FIELD_ARENA_CURRENCY,
- std::max(std::min(int32(plr_itr->second),int32(sWorld.getConfig(CONFIG_MAX_ARENA_POINTS))),0));
+ std::min(int32(plr_itr->second),int32(sWorld.getConfig(CONFIG_MAX_ARENA_POINTS))));
}
}