]> git.mxchange.org Git - flightgear.git/blobdiff - src/Instrumentation/gps.cxx
#393: Vertical speed indicator affected by sim speed up
[flightgear.git] / src / Instrumentation / gps.cxx
index 853d49d466fc05cecd2ed6d2569e6c417d2e95f2..f0ecf6f0486bfa960d18498d3bbc78cdfefbd2d7 100644 (file)
@@ -1158,7 +1158,7 @@ double GPS::getWP1Bearing() const
 
 double GPS::getWP1MagBearing() const
 {
-  if (!_dataValid) {
+  if (!_dataValid || !_wayptController.get()) {
     return -9999.0;
   }