From 7376aa4e802ccc0a65cbd94e008cc6d0efc6126f Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Mon, 2 Apr 2018 13:47:02 +0200 Subject: [PATCH] fix floor fix initialization --- src/tabcontrollers/FixFloorTabController.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tabcontrollers/FixFloorTabController.cpp b/src/tabcontrollers/FixFloorTabController.cpp index 1da09b3..8ac480d 100644 --- a/src/tabcontrollers/FixFloorTabController.cpp +++ b/src/tabcontrollers/FixFloorTabController.cpp @@ -107,7 +107,7 @@ void FixFloorTabController::eventLoopTick(vr::TrackedDevicePose_t* devicePoses) floorOffsetZ = tempOffsetZ; LOG(INFO) << "Fix Floor and adjust playspace center: Floor Offset = [" << floorOffsetX << ", " << floorOffsetY << ", " << floorOffsetZ << "]"; - float offset[3]; + float offset[3] = { 0, 0, 0 }; offset[1] = floorOffsetY; if (state == 2) { offset[0] = floorOffsetX;