Skip to content
This repository was archived by the owner on Jan 5, 2024. It is now read-only.

Commit c933d33

Browse files
committed
Const reference
1 parent 3018c5b commit c933d33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Entities/AtomGroup.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ namespace RTE {
162162
/// </summary>
163163
/// <param name="newPos">The Vector with the new absolute position.</param>
164164
/// <param name="hFlipped"></param>
165-
void SetLimbPos(Vector &newPos, bool hFlipped = false) { m_LimbPos = newPos - m_JointOffset.GetXFlipped(hFlipped); }
165+
void SetLimbPos(const Vector &newPos, bool hFlipped = false) { m_LimbPos = newPos - m_JointOffset.GetXFlipped(hFlipped); }
166166

167167
/// <summary>
168168
/// Gets the current mass moment of inertia of this AtomGroup

0 commit comments

Comments
 (0)