summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--opentrack/tracker.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/opentrack/tracker.cpp b/opentrack/tracker.cpp
index ad10e396..6411db40 100644
--- a/opentrack/tracker.cpp
+++ b/opentrack/tracker.cpp
@@ -24,6 +24,7 @@
Tracker::Tracker(main_settings& s, Mappings &m, SelectedLibraries &libs) :
s(s),
m(m),
+ newpose {0,0,0, 0,0,0},
centerp(s.center_at_startup),
enabledp(true),
zero_(false),
@@ -254,7 +255,7 @@ void Tracker::run() {
double tmp[6] {0,0,0, 0,0,0};
libs.pTracker->data(tmp);
-
+
if (enabledp)
for (int i = 0; i < 6; i++)
newpose[i] = elide_nan(tmp[i], newpose[i]);