diff options
author | megamage <none@none> | 2009-02-16 20:09:22 -0600 |
---|---|---|
committer | megamage <none@none> | 2009-02-16 20:09:22 -0600 |
commit | 0a5b8f78f5aeabb0dac9b5d35e8685f62ac1d3e0 (patch) | |
tree | edaa9e422a79beaf72a1a4c11b2b884c5930436b /src | |
parent | 4ff544f368a9dcd63599e7d1ca5082e263cf8bdc (diff) |
Small BattleGroundQueue::RemovePlayer cleanup. Author: VladimirMangos
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/BattleGroundMgr.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/game/BattleGroundMgr.cpp b/src/game/BattleGroundMgr.cpp index 5c47270ead8..05b0e1c478c 100644 --- a/src/game/BattleGroundMgr.cpp +++ b/src/game/BattleGroundMgr.cpp @@ -183,8 +183,6 @@ void BattleGroundQueue::RemovePlayer(const uint64& guid, bool decreaseInvitedCou uint32 queue_id = 0; QueuedPlayersMap::iterator itr; - GroupQueueInfo * group; - QueuedGroupsList::iterator group_itr; // mostly people with the highest levels are in battlegrounds, thats why // we count from MAX_BATTLEGROUND_QUEUES to 0 @@ -202,11 +200,12 @@ void BattleGroundQueue::RemovePlayer(const uint64& guid, bool decreaseInvitedCou return; } - group = itr->second.GroupInfo; + GroupQueueInfo* group = itr->second.GroupInfo; - for(group_itr=m_QueuedGroups[queue_id].begin(); group_itr != m_QueuedGroups[queue_id].end(); ++group_itr) + QueuedGroupsList::iterator group_itr = m_QueuedGroups[queue_id].begin(); + for(; group_itr != m_QueuedGroups[queue_id].end(); ++group_itr) { - if(group == (GroupQueueInfo*)(*group_itr)) + if(group == *group_itr) break; } |