Core/Dungeon Finder: Prevent a crash in Leave by checking Player or Group exist

--HG--
branch : trunk
This commit is contained in:
Spp
2010-10-25 11:26:01 +02:00
parent 739f336618
commit 18de18e7b9

View File

@@ -685,6 +685,9 @@ void LFGMgr::Leave(Player* plr, Group* grp /* = NULL*/)
uint64 guid = grp ? grp->GetGUID() : plr ? plr->GetGUID() : 0;
sLog.outDebug("LFGMgr::Leave: [" UI64FMTD "]", guid);
if (!guid)
return;
// Remove from Role Checks
if (grp)