]> git.mxchange.org Git - flightgear.git/blobdiff - src/Instrumentation/navradio.hxx
fix another crash at the poles
[flightgear.git] / src / Instrumentation / navradio.hxx
index abb288421b5b6076ac0bd96806f84129c3ef5a1b..c731f1d2b7a3c896c2efce7c7035a1831d92931e 100644 (file)
@@ -24,7 +24,7 @@
 #ifndef _FG_NAVRADIO_HXX
 #define _FG_NAVRADIO_HXX
 
-
+#include <Navaids/navaids_fwd.hxx>
 #include <Main/fg_props.hxx>
 
 #include <simgear/compiler.h>
@@ -32,8 +32,6 @@
 #include <simgear/timing/timestamp.hxx>
 
 class SGSampleGroup;
-class FGNavRecord;
-typedef SGSharedPtr<FGNavRecord> FGNavRecordPtr;
 
 class FGNavRadio : public SGSubsystem, public SGPropertyChangeListener
 {
@@ -119,8 +117,8 @@ class FGNavRadio : public SGSubsystem, public SGPropertyChangeListener
     int play_count;
     bool _nav_search;
     double _last_freq;
-    FGNavRecordPtr _navaid;
-    FGNavRecordPtr _gs;
+    FGNavRecordRef _navaid;
+    FGNavRecordRef _gs;
     
     double target_radial;
     double effective_range;