X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FInstrumentation%2Fmk_viii.cxx;h=50e1df1a75ec323c32597bd2166098ff9ccb593a;hb=c6045147544badd6daefdcab9d4de1ed6936533b;hp=8908078c9d347dfd986e80d9b9363f0a9b5bfe55;hpb=82bfb6a08de380a445b7a7b2f27409731d30bd8b;p=flightgear.git diff --git a/src/Instrumentation/mk_viii.cxx b/src/Instrumentation/mk_viii.cxx index 8908078c9..50e1df1a7 100755 --- a/src/Instrumentation/mk_viii.cxx +++ b/src/Instrumentation/mk_viii.cxx @@ -4521,7 +4521,7 @@ MK_VIII::TCFHandler::update_runway () // large airports, which may have a runway located far away from // the airport's reference point. AirportFilter filter(mk); - FGPositionedRef apt = FGPositioned::findClosest( + FGAirport* apt = FGAirport::findClosest( SGGeod::fromDeg(mk_data(gps_longitude).get(), mk_data(gps_latitude).get()), 30.0, &filter); @@ -4529,7 +4529,7 @@ MK_VIII::TCFHandler::update_runway () has_runway = true; - FGRunway* _runway = select_runway(static_cast(apt.ptr())); + FGRunway* _runway = select_runway(apt); runway.center.latitude = _runway->latitude(); runway.center.longitude = _runway->longitude();