aboutsummaryrefslogtreecommitdiff
path: root/src/game/BattleGroundMgr.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-03-24 09:36:50 -0600
committermegamage <none@none>2009-03-24 09:36:50 -0600
commit7d9a71a6cfdc02823653d63cbf0d33ace8c60d2a (patch)
tree8e382938571ec64b66dd54446c3a919eea7781a9 /src/game/BattleGroundMgr.cpp
parent9dfe48747f17f73e17831ed9fc246a1379d0932b (diff)
[7523] Fixed: players will now drop flag in battleground if they cast immunity buff on themselves. Author: `win
TODO: players who carry flag in bg are imune to immunity buffs casted by friendly players. (todo added to code). Bug: if paladin casts Hand of protection on flag carrier - flag will be dropped, but he should get "target is immune" message. Fixed: Do not call Battleground::Update for battleground template objects. Fixed: Do not allow immune player to click on object in battleground (not sure if this is correct in all cases). --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 ce9eae6a5c8..53e466e9ca5 100644
--- a/src/game/BattleGroundMgr.cpp
+++ b/src/game/BattleGroundMgr.cpp
@@ -1178,7 +1178,7 @@ void BattleGroundMgr::Update(uint32 diff)
// skip updating battleground template
if( itr != m_BattleGrounds[i].end() )
++itr;
- for(itr = m_BattleGrounds[i].begin(); itr != m_BattleGrounds[i].end(); itr = next)
+ for(; itr != m_BattleGrounds[i].end(); itr = next)
{
next = itr;
++next;