Fix null reference exception.

This commit is contained in:
Relintai 2019-12-02 21:33:59 +01:00
parent 2d34cff90d
commit af1fd0bb12

View File

@ -66,7 +66,7 @@ func _sdeapply(data : AuraData) -> void:
data.owner.sremove_state_ref(i)
func _con_aura_added(data : AuraData) -> void:
if data.owner.get_character_skeleton() == null:
if data.owner.get_character_skeleton() == null or data.owner.get_character_skeleton().root_attach_point == null:
return
var bse : SpellEffectVisualBasic = visual_spell_effects as SpellEffectVisualBasic