bypass Map::CanEnter() checks on login (fixes a crash)
Need info about this bypass is exploitable or not --HG-- branch : trunk
This commit is contained in:
@@ -234,7 +234,7 @@ bool MapManager::CanPlayerEnter(uint32 mapid, Player* player, bool loginCheck)
|
||||
InstanceGroupBind* boundedInstance = pGroup->GetBoundInstance(entry);
|
||||
if (boundedInstance && boundedInstance->save)
|
||||
if (Map *boundedMap = sMapMgr.FindMap(mapid,boundedInstance->save->GetInstanceId()))
|
||||
if (!boundedMap->CanEnter(player))
|
||||
if (!loginCheck && !boundedMap->CanEnter(player))
|
||||
return false;
|
||||
/*
|
||||
This check has to be moved to InstanceMap::CanEnter()
|
||||
|
||||
Reference in New Issue
Block a user