From 9be636555cc4e82e0bd74a54e77b4adfb84f9d31 Mon Sep 17 00:00:00 2001
From: Thorsten Brehm <brehm@patagonia.southamerica>
Date: Tue, 5 Oct 2010 22:34:08 +0200
Subject: [PATCH] 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...
---
 src/Instrumentation/navradio.cxx | 1 +
 1 file changed, 1 insertion(+)

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)