Core/Dungeon Finder: Prevent a crash in Leave by checking Player or Group exist
--HG-- branch : trunk
This commit is contained in:
@@ -685,6 +685,9 @@ void LFGMgr::Leave(Player* plr, Group* grp /* = NULL*/)
|
|||||||
|
|
||||||
uint64 guid = grp ? grp->GetGUID() : plr ? plr->GetGUID() : 0;
|
uint64 guid = grp ? grp->GetGUID() : plr ? plr->GetGUID() : 0;
|
||||||
sLog.outDebug("LFGMgr::Leave: [" UI64FMTD "]", guid);
|
sLog.outDebug("LFGMgr::Leave: [" UI64FMTD "]", guid);
|
||||||
|
|
||||||
|
if (!guid)
|
||||||
|
return;
|
||||||
|
|
||||||
// Remove from Role Checks
|
// Remove from Role Checks
|
||||||
if (grp)
|
if (grp)
|
||||||
|
|||||||
Reference in New Issue
Block a user