small optimization

This commit is contained in:
in0finite 2019-07-11 23:16:26 +02:00
parent 269ffca20f
commit e3bdea9647

View file

@ -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 ();
}