Selaa lähdekoodia

Skeleton2D: Fix missing return value in comparator

Rémi Verschelde 7 vuotta sitten
vanhempi
commit
e349cedb6e
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      scene/2d/skeleton_2d.h

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

@@ -34,7 +34,7 @@ class Skeleton2D : public Node2D {
 
 	struct Bone {
 		bool operator<(const Bone &p_bone) const {
-			p_bone.bone->is_greater_than(bone);
+			return p_bone.bone->is_greater_than(bone);
 		}
 		Bone2D *bone;
 		Transform2D rest_inverse;