Sanity checks in _00E_Theriantrophist_PlayerAsWerewolf

This commit is contained in:
Eddoursul 2024-02-10 08:56:23 +01:00
parent b41636d086
commit 09a3cb142c
2 changed files with 3 additions and 2 deletions

View File

@ -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