X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FTraffic%2FSchedFlight.cxx;h=40d237b43e68fae957a8a0c76276fb555022f80c;hb=439700aecded365c56583ca95d57d9b87e74f904;hp=0fad5b88d7af7fd7f47d032661361bcd80ae47f5;hpb=d8a2726894bf9f26ff456d1ff393e6d2a2b26bc0;p=flightgear.git diff --git a/src/Traffic/SchedFlight.cxx b/src/Traffic/SchedFlight.cxx index 0fad5b88d..40d237b43 100644 --- a/src/Traffic/SchedFlight.cxx +++ b/src/Traffic/SchedFlight.cxx @@ -50,11 +50,7 @@ #include #include -#include - #include -#include -#include #include #include #include @@ -271,13 +267,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);