diff --git a/skeleton/character_skeleton.cpp b/skeleton/character_skeleton.cpp index 8e376a9..6202823 100644 --- a/skeleton/character_skeleton.cpp +++ b/skeleton/character_skeleton.cpp @@ -15,7 +15,7 @@ void CharacterSkeleton::set_bone_path(int index, NodePath path) { } Ref CharacterSkeleton::get_visual(int index) { - ERR_FAIL_INDEX_V(index, EntityEnums::SKELETON_POINTS_MAX, NodePath()); + ERR_FAIL_INDEX_V(index, EntityEnums::SKELETON_POINTS_MAX, Ref()); return _visuals[index]; }