mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2025-02-17 05:18:27 +00:00
prevent possible NRE
This commit is contained in:
parent
59ca8f3d77
commit
1a7a4d5471
1 changed files with 6 additions and 1 deletions
|
@ -52,6 +52,11 @@ namespace SanAndreasUnity.Behaviours.Peds.States
|
|||
|
||||
var model = ped.PlayerModel;
|
||||
|
||||
if (null == model.RootFrame)
|
||||
return;
|
||||
if (null == model.UnnamedFrame)
|
||||
return;
|
||||
|
||||
// for some reason, y position always remains 0.25
|
||||
// m_model.UnnamedFrame.transform.localPosition = m_model.UnnamedFrame.transform.localPosition.WithXAndZ();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue