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

This commit is contained in:
Shocker committed 2011-04-09 11:28:39 +03:00
1 parent baedc78b10
commit 0905538b32
1 file changed
+2 -2
@@ -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())