]> git.mxchange.org Git - flightgear.git/blobdiff - src/ATCDCL/tower.cxx
Reset - instruments can be re-inited now (reloads XML files)
[flightgear.git] / src / ATCDCL / tower.cxx
index fa54b15cf8804d352001b347424c34057df33eb3..d44e33018b857cad21a50a9060aa18b8d5929b1c 100644 (file)
@@ -1505,7 +1505,11 @@ void FGTower::DoRwyDetails() {
        // Based on the airport-id and wind get the active runway
        
   const FGAirport* apt = fgFindAirportID(ident);
-  assert(apt);
+  if (!apt) {
+    SG_LOG(SG_ATC, SG_WARN, "FGTower::DoRwyDetails: unknown ICAO:" << ident);
+    return;
+  }
+  
        FGRunway* runway = apt->getActiveRunwayForUsage();
 
   activeRwy = runway->ident();