4
Fork 0

Sanity checks in _00E_Theriantrophist_PlayerAsWerewolf

development
Eddoursul 3 months ago
parent b41636d086
commit 09a3cb142c
  1. BIN
      scripts/_00e_theriantrophist_playeraswerewolf.pex
  2. 5
      source/scripts/_00e_theriantrophist_playeraswerewolf.psc

@ -351,7 +351,7 @@ Function _ReapplySkins()
Actor player = GetReference() as Actor
if player.IsOnMount() || player.IsSwimming()
if !player || player.IsOnMount() || player.IsSwimming()
return
endif
@ -383,7 +383,8 @@ Function _FixNotTransformedPlayerSkin()
endif
Actor player = GetReference() as Actor
if ! player.IsOnMount() && ! player.IsSwimming()
if player && ! player.IsOnMount() && ! player.IsSwimming()
player.getActorBase().SetSkin(player.GetRace().GetSkin())
player.QueueNiNodeUpdate()
endif

Loading…
Cancel
Save