diff options
author | Spp <none@none> | 2010-08-20 01:27:05 +0200 |
---|---|---|
committer | Spp <none@none> | 2010-08-20 01:27:05 +0200 |
commit | c75ab7fd280808bedf36755f1169e9f8be9f3ca1 (patch) | |
tree | 3f731ffcb6c3cdd4354ae94e37de36e4ba88ac8d /src | |
parent | cf3c9b4ed60b9345d56956009dca088a3df273b9 (diff) |
Dungeon Finder: Add a check to avoid rolechecks with no dungeon (Only happen with groups loaded from DB)
This fixes a crash in UpdateProposal.
Updates issue 3465
--HG--
branch : trunk
Diffstat (limited to 'src')
-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 3c707d275cc..4746b64b314 100644 --- a/src/server/game/DungeonFinding/LFGMgr.cpp +++ b/src/server/game/DungeonFinding/LFGMgr.cpp @@ -872,7 +872,7 @@ void LFGMgr::UpdateRoleCheck(Group *grp, Player *plr /* = NULL*/) pRoleCheck->roles[plrg->GetGUIDLow()] = 0; // Check if it's offer continue or trying to find a new instance after a random assigned (Join Random + LfgGroup) - if (grp->isLFGGroup() && dungeons->size() == 1 && isRandomDungeon(*dungeons->begin())) + if (grp->isLFGGroup() && dungeons->size() == 1 && isRandomDungeon(*dungeons->begin()) && grp->GetLfgDungeonEntry()) pRoleCheck->dungeons.insert(grp->GetLfgDungeonEntry()); else for (LfgDungeonSet::const_iterator itDungeon = dungeons->begin(); itDungeon != dungeons->end(); ++itDungeon) |