]> git.mxchange.org Git - flightgear.git/blobdiff - src/ATC/AIMgr.hxx
try to fix yet another crash bug (don't worry, there's one for anybody!)
[flightgear.git] / src / ATC / AIMgr.hxx
index 5dcdba70c700a694ea9ca22908d7ee819a4346e0..6bc81a10b9afd33da00cf5366e2415469d24d2d9 100644 (file)
@@ -23,7 +23,6 @@
 #define _FG_AIMGR_HXX
 
 #include <simgear/structure/subsystem_mgr.hxx>
-#include <simgear/structure/ssgSharedPtr.hxx>
 
 #include <Main/fg_props.hxx>
 
@@ -87,9 +86,9 @@ private:
     double lat;
     double elev;
     // Pointers to current users position
-    SGPropertyNode *lon_node;
-    SGPropertyNode *lat_node;
-    SGPropertyNode *elev_node;
+    SGPropertyNode_ptr lon_node;
+    SGPropertyNode_ptr lat_node;
+    SGPropertyNode_ptr elev_node;
 
 public:
 
@@ -110,8 +109,8 @@ public:
 
 private:
        
-       ssgSharedPtr<ssgBranch> _defaultModel;  // Cessna 172!
-       ssgSharedPtr<ssgBranch> _piperModel;    // pa28-161
+        osg::ref_ptr<osg::Node> _defaultModel;  // Cessna 172!
+       osg::ref_ptr<osg::Node> _piperModel;    // pa28-161
 
        bool initDone;  // Hack - guard against update getting called before init