Fixed a Papyrus warning in _00E_BoneSpiritControlScript

This commit is contained in:
Eddoursul 2024-02-12 21:12:17 +01:00
parent 43931b07af
commit 9146903b39
2 changed files with 6 additions and 1 deletions

View File

@ -5,12 +5,17 @@ Event OnInit()
EndEvent
Event OnUpdate()
If bSetupDone == False
If ! bSetupDone
Setup()
EndIf
EndEvent
Function Setup()
; Can be called on demand from GetOriginalSpellDamage()
if ! SKSE.GetVersion()
return
endif
boneSpiritSpells = New Spell[12]
boneSpiritMagnitudes = New Float[12]