Core/Instances: Fix client freeze when trying to enter an instance which have players inside and you have save but not in same group that people inside and your homebind is in the same continent that the instance

This commit is contained in:
Spp
2011-09-16 21:52:49 +02:00
parent f356f65fa6
commit 2f83db28f2
+1 -3
View File
@@ -2206,9 +2206,7 @@ bool Player::TeleportTo(uint32 mapid, float x, float y, float z, float orientati
if (!sMapMgr->CanPlayerEnter(mapid, this, false)) if (!sMapMgr->CanPlayerEnter(mapid, this, false))
return false; return false;
// If the map is not created, assume it is possible to enter it. Map* map = sMapMgr->CreateMap(mapid, this, 0);
// It will be created in the WorldPortAck.
Map* map = sMapMgr->FindMap(mapid);
if (!map || map->CanEnter(this)) if (!map || map->CanEnter(this))
{ {
//lets reset near teleport flag if it wasn't reset during chained teleports //lets reset near teleport flag if it wasn't reset during chained teleports