X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FATCDCL%2Ftower.cxx;h=d44e33018b857cad21a50a9060aa18b8d5929b1c;hb=7aba4333a261df723fcbe9eaf86c16af89372595;hp=fa54b15cf8804d352001b347424c34057df33eb3;hpb=13ec36af4218402eda39c680e8da6ca2c198733c;p=flightgear.git diff --git a/src/ATCDCL/tower.cxx b/src/ATCDCL/tower.cxx index fa54b15cf..d44e33018 100644 --- a/src/ATCDCL/tower.cxx +++ b/src/ATCDCL/tower.cxx @@ -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();