From 4a4847f41747820e4f466882edc2503a324ff52e Mon Sep 17 00:00:00 2001 From: Grinch_ Date: Mon, 22 Feb 2021 05:09:28 +0600 Subject: [PATCH] Fix teleporter bug with vehicles --- src/Teleport.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Teleport.cpp b/src/Teleport.cpp index 2dfe451..7334964 100644 --- a/src/Teleport.cpp +++ b/src/Teleport.cpp @@ -122,13 +122,13 @@ void Teleport::TeleportPlayer(bool get_marker, CVector pos, short interior_id) Command(CPools::GetPedRef(player), true); } - CStreaming::LoadScene(&Teleport::STeleport::pos); - CStreaming::LoadSceneCollision(&Teleport::STeleport::pos); + CStreaming::LoadScene(&pos); + CStreaming::LoadSceneCollision(&pos); CStreaming::LoadAllRequestedModels(false); if (pVeh && player->m_nPedFlags.bInVehicle) { - pVeh->Teleport(STeleport::pos, false); + pVeh->Teleport(pos, false); if (pVeh->m_nVehicleClass == VEHICLE_BIKE) reinterpret_cast(pVeh)->PlaceOnRoadProperly();