diff options
Diffstat (limited to 'src/dynamics')
| -rw-r--r-- | src/dynamics/joint/joint_set.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dynamics/joint/joint_set.rs b/src/dynamics/joint/joint_set.rs index 513aa4b..1f25cff 100644 --- a/src/dynamics/joint/joint_set.rs +++ b/src/dynamics/joint/joint_set.rs @@ -78,7 +78,7 @@ impl JointSet { /// Gets a mutable reference to the joint with the given handle. pub fn get_mut(&mut self, handle: JointHandle) -> Option<&mut Joint> { - let id = self.joint_ids.get_mut(handle.0)?; + let id = self.joint_ids.get(handle.0)?; self.joint_graph.graph.edge_weight_mut(*id) } |
