From 5d51487b70a07f1853f1cbcf84ac5eb635e38bbe Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 4 Dec 2013 18:46:15 +0100 Subject: fix crash with no rift --- ftnoir_tracker_rift/ftnoir_tracker_rift.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ftnoir_tracker_rift/ftnoir_tracker_rift.cpp b/ftnoir_tracker_rift/ftnoir_tracker_rift.cpp index dd78bf9f..4816cea4 100644 --- a/ftnoir_tracker_rift/ftnoir_tracker_rift.cpp +++ b/ftnoir_tracker_rift/ftnoir_tracker_rift.cpp @@ -70,7 +70,7 @@ void Rift_Tracker::StartTracker(QFrame*) bool Rift_Tracker::GiveHeadPoseData(double *data) { - if (pSFusion != NULL) { + if (pSFusion != NULL && pSensor != NULL) { Quatf hmdOrient = pSFusion->GetOrientation(); double newHeadPose[6]; -- cgit v1.2.3