Skip to content

Commit a1a90aa

Browse files
committed
fix: initialize mRadius to safe default for invalid constructor input
1 parent 4c7fd65 commit a1a90aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dart/dynamics/SphereShape.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ class SphereShape : public Shape
8080

8181
private:
8282
/// Radius of this Sphere
83-
double mRadius;
83+
double mRadius{1.0};
8484
};
8585

8686
} // namespace dynamics

0 commit comments

Comments
 (0)