From af1fd0bb1270cf0bf94eae98153d02b08f83da8e Mon Sep 17 00:00:00 2001 From: Relintai Date: Mon, 2 Dec 2019 21:33:59 +0100 Subject: [PATCH] Fix null reference exception. --- game/scripts/auras/aura_script.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game/scripts/auras/aura_script.gd b/game/scripts/auras/aura_script.gd index eff9031b..1d5ab607 100644 --- a/game/scripts/auras/aura_script.gd +++ b/game/scripts/auras/aura_script.gd @@ -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