Core/Dungeon Finder: Fix a crash in Join
Closes issue 4939 --HG-- branch : trunk
This commit is contained in:
@@ -525,9 +525,12 @@ void LFGMgr::Join(Player* plr, uint8 roles, LfgDungeonSet* dungeons, std::string
|
|||||||
if (sameDungeons) // Joining the same dungeons -- Send OK
|
if (sameDungeons) // Joining the same dungeons -- Send OK
|
||||||
{
|
{
|
||||||
plr->GetSession()->SendLfgJoinResult(LFG_JOIN_OK);
|
plr->GetSession()->SendLfgJoinResult(LFG_JOIN_OK);
|
||||||
|
if (grp)
|
||||||
|
{
|
||||||
for (GroupReference* itr = grp->GetFirstMember(); itr != NULL; itr = itr->next())
|
for (GroupReference* itr = grp->GetFirstMember(); itr != NULL; itr = itr->next())
|
||||||
if (itr->getSource() && itr->getSource()->GetSession())
|
if (itr->getSource() && itr->getSource()->GetSession())
|
||||||
itr->getSource()->GetSession()->SendLfgUpdateParty(LFG_UPDATETYPE_ADDED_TO_QUEUE, dungeons, comment);
|
itr->getSource()->GetSession()->SendLfgUpdateParty(LFG_UPDATETYPE_ADDED_TO_QUEUE, dungeons, comment);
|
||||||
|
}
|
||||||
dungeons->clear();
|
dungeons->clear();
|
||||||
delete dungeons;
|
delete dungeons;
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user