Fix crash
--HG-- branch : trunk
This commit is contained in:
1 parent
218e81d4dc
commit
e634533f91
1 file changed
+1
-1
+1
-1
@@ -2524,7 +2524,7 @@ bool InstanceMap::CanEnter(Player *player)
|
||||
// cannot enter while an encounter is in progress on raids
|
||||
/*Group *pGroup = player->GetGroup();
|
||||
if(!player->isGameMaster() && pGroup && pGroup->InCombatToInstance(GetInstanceId()) && player->GetMapId() != GetId())*/
|
||||
if (IsRaid() && GetInstanceData()->IsEncounterInProgress())
|
||||
if (IsRaid() && GetInstanceData() && GetInstanceData()->IsEncounterInProgress())
|
||||
{
|
||||
player->SendTransferAborted(GetId(), TRANSFER_ABORT_ZONE_IN_COMBAT);
|
||||
return false;
|
||||
|
||||
Reference in new issue
Block a user