mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 18:36:31 +01:00
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;
|
||||
sLog.outDebug("LFGMgr::Leave: [" UI64FMTD "]", guid);
|
||||
|
||||
if (!guid)
|
||||
return;
|
||||
|
||||
// Remove from Role Checks
|
||||
if (grp)
|
||||
|
||||
Reference in New Issue
Block a user