Skip to content

Commit

Permalink
fix UB
Browse files Browse the repository at this point in the history
  • Loading branch information
markaren committed Apr 10, 2024
1 parent 3b57e6a commit 703e4a6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/libs/kine/joints/KineJoint.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ namespace kine {
class KineJoint: public KineComponent {

public:
const threepp::Vector3& axis;
const KineLimit limit;
threepp::Vector3 axis;
KineLimit limit;

KineJoint(const threepp::Vector3& axis, KineLimit limit)
KineJoint(const threepp::Vector3& axis, const KineLimit& limit)
: axis(axis),
limit(limit){};

Expand Down

0 comments on commit 703e4a6

Please sign in to comment.