summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-12-04 18:46:15 +0100
committerStanislaw Halik <sthalik@misaki.pl>2013-12-04 18:46:15 +0100
commit5d51487b70a07f1853f1cbcf84ac5eb635e38bbe (patch)
tree04cf87cde131c6a0215288b570de905e6eed77b6
parenta6b1128a2d55720991513650cef4ceffa183a737 (diff)
fix crash with no rift
-rw-r--r--ftnoir_tracker_rift/ftnoir_tracker_rift.cpp2
1 files changed, 1 insertions, 1 deletions
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];