aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSpp <spp@jorge.gr>2011-09-16 21:52:49 +0200
committerSpp <spp@jorge.gr>2011-09-16 21:52:49 +0200
commit2f83db28f2a11384e1b818b1d5d42d0d87111172 (patch)
tree84c07f9ce75cdc0e918322af9473b8db6a95ee99 /src
parentf356f65fa6f9eafbc76fee4620a21cb320035ba8 (diff)
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
Diffstat (limited to 'src')
-rwxr-xr-xsrc/server/game/Entities/Player/Player.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/server/game/Entities/Player/Player.cpp b/src/server/game/Entities/Player/Player.cpp
index 2cfdaf84205..beae47640e4 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