]> git.mxchange.org Git - flightgear.git/blobdiff - src/ATC/AIEntity.hxx
try to fix yet another crash bug (don't worry, there's one for anybody!)
[flightgear.git] / src / ATC / AIEntity.hxx
index 9f2870dfa8655a941740fcb61ee1ee0570340118..dc9070b8bfebc3e4bd1c52387c62231b65b96e64 100644 (file)
@@ -16,7 +16,7 @@
 //
 // You should have received a copy of the GNU General Public License
 // along with this program; if not, write to the Free Software
-// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 
 #ifndef _FG_AIEntity_HXX
 #define _FG_AIEntity_HXX
 #include <simgear/math/point3d.hxx>
 #include <simgear/scene/model/model.hxx>
 #include <simgear/scene/model/placement.hxx>
-#include <simgear/structure/ssgSharedPtr.hxx>
-
-
-class ssgBase;
 
 
 /*****************************************************************
@@ -46,7 +42,7 @@ public:
     virtual ~FGAIEntity();
        
        // Set the 3D model to use (Must be called)
-       void SetModel(ssgBranch* model);
+  void SetModel(osg::Node* model);
 
     // Run the internal calculations
     virtual void Update(double dt)=0;
@@ -67,7 +63,7 @@ protected:
     double _pitch;     //degrees
 
     char* _model_path; //Path to the 3D model
-    ssgSharedPtr<ssgBranch> _model;    // Pointer to the model
+    osg::ref_ptr<osg::Node> _model;    // Pointer to the model
     SGModelPlacement _aip;
 
     void Transform();