diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2013-12-04 18:46:15 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2013-12-04 18:46:15 +0100 |
commit | 5d51487b70a07f1853f1cbcf84ac5eb635e38bbe (patch) | |
tree | 04cf87cde131c6a0215288b570de905e6eed77b6 /ftnoir_tracker_rift | |
parent | a6b1128a2d55720991513650cef4ceffa183a737 (diff) |
fix crash with no rift
Diffstat (limited to 'ftnoir_tracker_rift')
-rw-r--r-- | ftnoir_tracker_rift/ftnoir_tracker_rift.cpp | 2 |
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]; |