This commit is contained in:
in0finite 2019-04-29 01:49:21 +02:00
parent 4cae66d0c2
commit e4644c1319

View file

@ -28,8 +28,8 @@ namespace SanAndreasUnity.Behaviours.Peds.States
// after obtaining parameters, switch to this state
m_ped.SwitchState<VehicleExitingState> ();
// this should be done only if player was a driver ?
this.CurrentVehicle.StopControlling();
if (this.CurrentVehicleSeat.IsDriver)
this.CurrentVehicle.StopControlling();
if (m_ped.IsControlledByLocalPlayer)
{