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:
Tartalo
2010-06-29 15:41:39 +02:00
parent 745c2fb599
commit aa9b52c67a
+1 -1
View File
@@ -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()