Add null check to prevent a crash.

Closses issue 3405

--HG--
branch : trunk
This commit is contained in:
Spp
2010-08-12 20:31:49 +02:00
parent 03a0bcad09
commit 999bae68a4

View File

@@ -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);
}