Skip to content

Commit 3d39abd

Browse files
committed
Fix client-side ped exit logic
1 parent c3a1ddf commit 3d39abd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Client/mods/deathmatch/logic/CClientPed.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6798,7 +6798,7 @@ bool CClientPed::ExitVehicle()
67986798
return false;
67996799

68006800
// Make ped exit vehicle
6801-
GetOutOfVehicle(targetDoor);
6801+
GetOutOfVehicle(m_ucVehicleInOutSeat);
68026802

68036803
// Remember that this ped is working on leaving a vehicle
68046804
SetVehicleInOutState(VEHICLE_INOUT_GETTING_OUT);
@@ -6913,6 +6913,7 @@ void CClientPed::UpdateVehicleInOut()
69136913

69146914
m_bIsGettingOutOfVehicle = false;
69156915
m_VehicleInOutID = INVALID_ELEMENT_ID;
6916+
RemoveFromVehicle();
69166917
SetVehicleInOutState(VEHICLE_INOUT_NONE);
69176918
}
69186919

0 commit comments

Comments
 (0)