diff options
author | Spp <none@none> | 2010-08-14 15:04:52 +0200 |
---|---|---|
committer | Spp <none@none> | 2010-08-14 15:04:52 +0200 |
commit | a32f0e7e9d3e195d42e9b73de0cce0c0357f6710 (patch) | |
tree | ec9e76bd746d0a184d4e2543479508d33e73de12 | |
parent | 8be278dfae28451b13c042c915f6de9ad05fbbc8 (diff) |
Dungeon Finder: Add minor optimization to FindNewGroups
--HG--
branch : trunk
-rw-r--r-- | src/server/game/DungeonFinding/LFGMgr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/DungeonFinding/LFGMgr.cpp b/src/server/game/DungeonFinding/LFGMgr.cpp index 9fadbd03065..25c108487e1 100644 --- a/src/server/game/DungeonFinding/LFGMgr.cpp +++ b/src/server/game/DungeonFinding/LFGMgr.cpp @@ -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(); |