Dungeon Finder: Add minor optimization to FindNewGroups

--HG--
branch : trunk
This commit is contained in:
Spp
2010-08-14 15:04:52 +02:00
parent 8be278dfae
commit a32f0e7e9d
+1 -1
View File
@@ -604,7 +604,7 @@ void LFGMgr::FindNewGroups(LfgGuidList &check, LfgGuidList all, LfgProposalList
if (numPlayers < MAXGROUPSIZE)
{
while (!all.empty())
while (!all.empty() && check.size() < MAXGROUPSIZE)
{
check.push_back(all.front());
all.pop_front();