Core: Do not set TeleportDestination as reference in WorldSession::HandleMoveWorldportAckOpcode()

Signed-off-by: Frca <[email protected]>
This commit is contained in:
Frca
2012-04-18 15:10:00 +02:00
parent a483eb5f11
commit 284894b20b
+1 -1
View File
@@ -46,7 +46,7 @@ void WorldSession::HandleMoveWorldportAckOpcode()
GetPlayer()->SetSemaphoreTeleportFar(false);
// get the teleport destination
WorldLocation &loc = GetPlayer()->GetTeleportDest();
const WorldLocation loc = GetPlayer()->GetTeleportDest();
// possible errors in the coordinate validity check
if (!MapManager::IsValidMapCoord(loc))