From 703e4a66fd39ab11b93a4c0ee7109b8d7d8f6c6c Mon Sep 17 00:00:00 2001 From: Lars Ivar Hatledal Date: Wed, 10 Apr 2024 15:41:30 +0200 Subject: [PATCH] fix UB --- examples/libs/kine/joints/KineJoint.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/libs/kine/joints/KineJoint.hpp b/examples/libs/kine/joints/KineJoint.hpp index 5757b5367..828eb8a7d 100644 --- a/examples/libs/kine/joints/KineJoint.hpp +++ b/examples/libs/kine/joints/KineJoint.hpp @@ -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){};