mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-14 16:27:19 +00:00
small optimization
This commit is contained in:
parent
269ffca20f
commit
e3bdea9647
1 changed files with 2 additions and 1 deletions
|
@ -73,7 +73,8 @@ namespace SanAndreasUnity.Behaviours.Peds.States
|
|||
|
||||
// check if this is still active state ?
|
||||
|
||||
if (m_ped.IsDrivingVehicle)
|
||||
var seat = this.CurrentVehicleSeat;
|
||||
if (seat != null && seat.IsDriver)
|
||||
this.UpdateWheelTurning ();
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue