2
0
Fork 0
mirror of https://github.com/GTA-ASM/SanAndreasUnity synced 2025-03-05 07:37:17 +00:00

check if state is still active

This commit is contained in:
in0finite 2019-07-11 23:18:25 +02:00
parent e3bdea9647
commit 854b0c1856

View file

@ -71,7 +71,8 @@ namespace SanAndreasUnity.Behaviours.Peds.States
base.UpdateState();
// check if this is still active state ?
if (!this.IsActiveState)
return;
var seat = this.CurrentVehicleSeat;
if (seat != null && seat.IsDriver)