From e4644c13193b5be181823fab914e04ea3b6c0d97 Mon Sep 17 00:00:00 2001 From: in0finite Date: Mon, 29 Apr 2019 01:49:21 +0200 Subject: [PATCH] Fix --- Assets/Scripts/Behaviours/Ped/States/VehicleExitingState.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Assets/Scripts/Behaviours/Ped/States/VehicleExitingState.cs b/Assets/Scripts/Behaviours/Ped/States/VehicleExitingState.cs index b814f704..058094c2 100644 --- a/Assets/Scripts/Behaviours/Ped/States/VehicleExitingState.cs +++ b/Assets/Scripts/Behaviours/Ped/States/VehicleExitingState.cs @@ -28,8 +28,8 @@ namespace SanAndreasUnity.Behaviours.Peds.States // after obtaining parameters, switch to this state m_ped.SwitchState (); - // this should be done only if player was a driver ? - this.CurrentVehicle.StopControlling(); + if (this.CurrentVehicleSeat.IsDriver) + this.CurrentVehicle.StopControlling(); if (m_ped.IsControlledByLocalPlayer) {