From f03cb86c19000fb28dd4c000d76642534d5eb53d Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Tue, 25 Mar 2025 21:38:00 +0100 Subject: [PATCH] Fix maybe uninitialized warning --- client/xr/hand_tracker.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/client/xr/hand_tracker.cpp b/client/xr/hand_tracker.cpp index 2a12e36f..f8f5beed 100644 --- a/client/xr/hand_tracker.cpp +++ b/client/xr/hand_tracker.cpp @@ -77,7 +77,7 @@ std::optional> xr:: if (!locations.isActive) return std::nullopt; - float offset_angle; + float offset_angle = 0; // check if we have a device that needs a thumb offset switch (guess_model()) @@ -94,7 +94,6 @@ std::optional> xr:: break; default: - offset_angle = 0.0f; break; }