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:
parent
e3bdea9647
commit
854b0c1856
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue