Merge pull request #6250 from Frca/master

Core/Misc: Do not set TeleportDestination as reference in WorldSession::HandleMoveWorldportAckOpcode()
This commit is contained in:
Shocker
2012-04-23 17:26:34 -07:00

View File

@@ -46,7 +46,7 @@ void WorldSession::HandleMoveWorldportAckOpcode()
GetPlayer()->SetSemaphoreTeleportFar(false);
// get the teleport destination
WorldLocation &loc = GetPlayer()->GetTeleportDest();
WorldLocation const loc = GetPlayer()->GetTeleportDest();
// possible errors in the coordinate validity check
if (!MapManager::IsValidMapCoord(loc))