Fix maybe uninitialized warning

This commit is contained in:
Patrick Nicolas
2025-03-25 21:38:17 +01:00
parent 360d28d68e
commit f03cb86c19
+1 -2
View File
@@ -77,7 +77,7 @@ std::optional<std::array<xr::hand_tracker::joint, XR_HAND_JOINT_COUNT_EXT>> 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<std::array<xr::hand_tracker::joint, XR_HAND_JOINT_COUNT_EXT>> xr::
break;
default:
offset_angle = 0.0f;
break;
}