From 2f83db28f2a11384e1b818b1d5d42d0d87111172 Mon Sep 17 00:00:00 2001 From: Spp Date: Fri, 16 Sep 2011 21:52:49 +0200 Subject: [PATCH] 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 --- src/server/game/Entities/Player/Player.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/server/game/Entities/Player/Player.cpp b/src/server/game/Entities/Player/Player.cpp index 2cfdaf8420..beae47640e 100755 --- a/src/server/game/Entities/Player/Player.cpp +++ b/src/server/game/Entities/Player/Player.cpp @@ -2206,9 +2206,7 @@ bool Player::TeleportTo(uint32 mapid, float x, float y, float z, float orientati if (!sMapMgr->CanPlayerEnter(mapid, this, false)) return false; - // If the map is not created, assume it is possible to enter it. - // It will be created in the WorldPortAck. - Map* map = sMapMgr->FindMap(mapid); + Map* map = sMapMgr->CreateMap(mapid, this, 0); if (!map || map->CanEnter(this)) { //lets reset near teleport flag if it wasn't reset during chained teleports