aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBlaymoira <none@none>2008-12-26 17:06:43 +0100
committerBlaymoira <none@none>2008-12-26 17:06:43 +0100
commit9cd608739d817034621010c5bbc1ee7991822946 (patch)
treeb3d2b495fb706fdc392208f59d7d688c701c8d19 /src
parentfcba716f402caa0e23405b6b57d6d3f22752dc7f (diff)
parentd9e8f38eff6a842f3397dec7eb16dd62ee8dc151 (diff)
*Merge
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/OutdoorPvP.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/game/OutdoorPvP.cpp b/src/game/OutdoorPvP.cpp
index f2310aa4e0c..06d56897f1e 100644
--- a/src/game/OutdoorPvP.cpp
+++ b/src/game/OutdoorPvP.cpp
@@ -446,8 +446,11 @@ void OutdoorPvPObjective::UpdateActivePlayerProximityCheck()
{
for(int team = 0; team < 2; ++team)
{
- for(std::set<uint64>::iterator itr = m_ActivePlayerGuids[team].begin(); itr != m_ActivePlayerGuids[team].end(); ++ itr)
+ std::set<uint64>::iterator itr, next;
+ for(itr = m_ActivePlayerGuids[team].begin(); itr != m_ActivePlayerGuids[team].end(); itr = next)
{
+ next = itr;
+ ++next;
// if the player is online
if(Player * pl = objmgr.GetPlayer(*itr))
{