Core/Dungeon Finder: Fix a crash when trying to join raid browser as a group

--HG--
branch : trunk
This commit is contained in:
Spp
2010-11-22 17:00:31 +01:00
parent d1ade6f6b8
commit f9d38be8c1
+1 -3
View File
@@ -529,10 +529,7 @@ void LFGMgr::Join(Player* plr)
{ {
dungeons = plr->GetLfgDungeons(); dungeons = plr->GetLfgDungeons();
if (!dungeons || !dungeons->size()) if (!dungeons || !dungeons->size())
{
result = LFG_JOIN_NOT_MEET_REQS; result = LFG_JOIN_NOT_MEET_REQS;
dungeons = NULL;
}
else // Check if all dungeons are valid else // Check if all dungeons are valid
{ {
LfgType type = LFG_TYPE_NONE; LfgType type = LFG_TYPE_NONE;
@@ -558,6 +555,7 @@ void LFGMgr::Join(Player* plr)
} }
} }
} }
dungeons = NULL;
} }
if (result == LFG_JOIN_OK) if (result == LFG_JOIN_OK)