Core/Transports: Fixed a few mistakes in GO passenger teleports (currently unused), thanks joschiwald for spotting them

This commit is contained in:
Shauren
2013-11-02 16:33:39 +01:00
parent 62c6ae7660
commit ca34b701cb

View File

@@ -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;
}