]> git.mxchange.org Git - flightgear.git/blobdiff - src/ATCDCL/ground.cxx
Fix two bugs in the new autopilot code
[flightgear.git] / src / ATCDCL / ground.cxx
index 08a3206133fc8d6aabb3a53b451897f8db604ddb..e5d9c17d5915f0666e1ffa8bbd53fbc9c8cc2f8e 100644 (file)
@@ -362,7 +362,11 @@ void FGGround::DoRwyDetails() {
        //cout << "GetRwyDetails called" << endl;
                
   const FGAirport* apt = fgFindAirportID(ident);
-  assert(apt);
+  if (!apt) {
+    SG_LOG(SG_ATC, SG_WARN, "FGGround::DoRwyDetails: unknown ICAO:" << ident);
+    return;
+  }
+  
        FGRunway* runway = apt->getActiveRunwayForUsage();
 
   activeRwy = runway->ident();