mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-22 20:13:02 +00:00
prevent possible NRE
This commit is contained in:
parent
1a7a4d5471
commit
c6143c3647
1 changed files with 2 additions and 1 deletions
|
@ -90,7 +90,8 @@ namespace SanAndreasUnity.Behaviours.Peds.States
|
|||
// anim does not set correct velocity
|
||||
// set it to zero to make the ped stand in place
|
||||
// this should be done even if parent method changed active state
|
||||
m_model.RootFrame.LocalVelocity = Vector3.zero;
|
||||
if (m_model.RootFrame != null)
|
||||
m_model.RootFrame.LocalVelocity = Vector3.zero;
|
||||
|
||||
// if( !this.IsActiveState )
|
||||
// return;
|
||||
|
|
Loading…
Reference in a new issue