Core/Misc: Fix possible endless loop in HandleMoveWorldportAckOpcode / Logout

This commit is contained in:
Shocker
2011-04-09 11:28:39 +03:00
parent baedc78b10
commit 0905538b32

View File

@@ -43,6 +43,8 @@ void WorldSession::HandleMoveWorldportAckOpcode()
if (!GetPlayer()->IsBeingTeleportedFar())
return;
GetPlayer()->SetSemaphoreTeleportFar(false);
// get the teleport destination
WorldLocation &loc = GetPlayer()->GetTeleportDest();
@@ -61,8 +63,6 @@ void WorldSession::HandleMoveWorldportAckOpcode()
if (GetPlayer()->m_InstanceValid == false && !mInstance)
GetPlayer()->m_InstanceValid = true;
GetPlayer()->SetSemaphoreTeleportFar(false);
Map * oldMap = GetPlayer()->GetMap();
ASSERT(oldMap);
if (GetPlayer()->IsInWorld())