mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-18 16:38:42 +01:00
Core/Transports: Fixed a few mistakes in GO passenger teleports (currently unused), thanks joschiwald for spotting them
This commit is contained in:
@@ -460,8 +460,8 @@ bool Transport::TeleportTransport(uint32 newMapid, float x, float y, float z)
|
||||
{
|
||||
GameObject* go = obj->ToGameObject();
|
||||
go->GetMap()->RemoveFromMap(go, false);
|
||||
Relocate(destX, destY, destZ, destO);
|
||||
SetMap(newMap);
|
||||
go->Relocate(destX, destY, destZ, destO);
|
||||
go->SetMap(newMap);
|
||||
newMap->AddToMap(go);
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user