Core: Do not set TeleportDestination as reference in WorldSession::HandleMoveWorldportAckOpcode()
Signed-off-by: Frca <[email protected]>
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user