From: Thorsten Brehm Date: Tue, 5 Oct 2010 20:34:08 +0000 (+0200) Subject: Fixed navradio when shutting down/restarting nav receiver. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9be636555cc4e82e0bd74a54e77b4adfb84f9d31;p=flightgear.git Fixed navradio when shutting down/restarting nav receiver. "nav-loc" and "has_gs" properties were not updated when nav receiver was rebooted. Shutting down the nav receiver clears all nav outputs (including "nav-loc" and "has_gs"). => When nav receiver is powered again, all outputs must be updated. => "nav-loc" and "has_gs" are only updated when active nav station changes. => old nav station must be cleared on shutdown to enforce update on nav reboot... --- diff --git a/src/Instrumentation/navradio.cxx b/src/Instrumentation/navradio.cxx index 0970cae5a..2aac4b26d 100644 --- a/src/Instrumentation/navradio.cxx +++ b/src/Instrumentation/navradio.cxx @@ -390,6 +390,7 @@ void FGNavRadio::clearOutputs() _dmeInRange = false; _operable = false; + _navaid = NULL; } void FGNavRadio::updateReceiver(double dt)