mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 00:48:56 +01:00
Add null check to prevent a crash.
Closses issue 3405 --HG-- branch : trunk
This commit is contained in:
@@ -1282,7 +1282,8 @@ void LFGMgr::SendLfgPlayerInfo(Player *plr)
|
||||
randomlist->clear();
|
||||
delete randomlist;
|
||||
}
|
||||
BuildPlayerLockDungeonBlock(data, lockSet);
|
||||
if (lockSet)
|
||||
BuildPlayerLockDungeonBlock(data, lockSet);
|
||||
plr->GetSession()->SendPacket(&data);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user