Commit 956cf4cd authored by TobiasSimon's avatar TobiasSimon

fixes segfault when starting QGC without having a UAS selected

parent aaf236a9
......@@ -778,7 +778,10 @@ Pixhawk3DWidget::update(void)
// updateImagery(robotX, robotY, robotZ, utmZone);
}
updateHUD(mActiveUAS, frame);
if (mActiveUAS)
{
updateHUD(mActiveUAS, frame);
}
layout()->update();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment