mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-15 00:37:09 +00:00
Fix
This commit is contained in:
parent
4cae66d0c2
commit
e4644c1319
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue