X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FTraffic%2FSchedFlight.cxx;h=56db6204cba1cba31b04cd9b3c1462584190046a;hb=157eb857ef36636a316947fe1eb3d9a8bea1959b;hp=0fad5b88d7af7fd7f47d032661361bcd80ae47f5;hpb=d8a2726894bf9f26ff456d1ff393e6d2a2b26bc0;p=flightgear.git diff --git a/src/Traffic/SchedFlight.cxx b/src/Traffic/SchedFlight.cxx index 0fad5b88d..56db6204c 100644 --- a/src/Traffic/SchedFlight.cxx +++ b/src/Traffic/SchedFlight.cxx @@ -271,13 +271,13 @@ FGAirport * FGScheduledFlight::getArrivalAirport () bool FGScheduledFlight::initializeAirports() { //cerr << "Initializing using : " << depId << " " << arrId << endl; - departurePort = globals->get_airports()->search(depId); + departurePort = FGAirport::findByIdent(depId); if(departurePort == NULL) { SG_LOG( SG_GENERAL, SG_WARN, "Traffic manager could not find departure airport : " << depId); return false; } - arrivalPort = globals->get_airports()->search(arrId); + arrivalPort = FGAirport::findByIdent(arrId); if(arrivalPort == NULL) { SG_LOG( SG_GENERAL, SG_WARN, "Traffic manager could not find arrival airport : " << arrId);