]> git.mxchange.org Git - flightgear.git/blobdiff - src/Instrumentation/navradio.cxx
Merge branch 'durk/traffic'
[flightgear.git] / src / Instrumentation / navradio.cxx
index c1479d89634e02c9f9782720c0adf54a4ec342c7..0740090ddafb26ca2ccb5ef38c2a4d532ddc6940 100644 (file)
@@ -917,7 +917,10 @@ void FGNavRadio::search()
 double FGNavRadio::localizerWidth(FGNavRecord* aLOC)
 {
   FGRunway* rwy = aLOC->runway();
-  assert(rwy);
+  if (!rwy) {
+    return 6.0; // no runway associated, return default value
+  }
+  
   
   SGVec3d thresholdCart(SGVec3d::fromGeod(rwy->threshold()));
   double axisLength = dist(aLOC->cart(), thresholdCart);