X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FATCDCL%2Fapproach.cxx;h=6e75de47cd28c0b70beac0c901ccd8f974f5a00f;hb=1df8130bddbbc3bc590c37c31f5256470f839cfb;hp=c935cbc2903045ee537c534b1a835c7a340f45b5;hpb=301054204e0412eb31f06477e32cfe6f1fcb0792;p=flightgear.git diff --git a/src/ATCDCL/approach.cxx b/src/ATCDCL/approach.cxx index c935cbc29..6e75de47c 100644 --- a/src/ATCDCL/approach.cxx +++ b/src/ATCDCL/approach.cxx @@ -563,13 +563,13 @@ void FGApproach::get_active_runway() { const FGAirport* apt = fgFindAirportID(ident); assert(apt); - FGRunway runway = apt->getActiveRunwayForUsage(); + FGRunway* runway = apt->getActiveRunwayForUsage(); - active_runway = runway._rwy_no; - active_rw_hdg = runway._heading; - active_rw_lon = runway._lon; - active_rw_lat = runway._lat; - active_rw_len = runway._length; + active_runway = runway->ident(); + active_rw_hdg = runway->headingDeg(); + active_rw_lon = runway->longitude(); + active_rw_lat = runway->latitude(); + active_rw_len = runway->lengthFt(); } // ========================================================================