Browse Source

Initialize PhysicalBone2D::parent_skeleton

Haoyu Qiu 4 years ago
parent
commit
9cbf066feb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      scene/2d/physical_bone_2d.h

+ 1 - 1
scene/2d/physical_bone_2d.h

@@ -44,7 +44,7 @@ protected:
 	static void _bind_methods();
 	static void _bind_methods();
 
 
 private:
 private:
-	Skeleton2D *parent_skeleton;
+	Skeleton2D *parent_skeleton = nullptr;
 	int bone2d_index = -1;
 	int bone2d_index = -1;
 	NodePath bone2d_nodepath;
 	NodePath bone2d_nodepath;
 	bool follow_bone_when_simulating = false;
 	bool follow_bone_when_simulating = false;