mirror of
https://github.com/mangosfour/server.git
synced 2025-12-27 10:37:02 +00:00
Small BattleGroundQueue::RemovePlayer cleanup.
This commit is contained in:
parent
cdfee0fdfc
commit
02b4b2f0b1
1 changed files with 4 additions and 5 deletions
|
|
@ -249,8 +249,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
|
||||
|
|
@ -268,11 +266,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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue