]> git.mxchange.org Git - flightgear.git/blobdiff - src/ATC/AIEntity.cxx
Patch from Melchior Franz:
[flightgear.git] / src / ATC / AIEntity.cxx
index 67ba889eba031cfb13316277ce6f63aaacec540e..2eb8ba1d662e2adf85d88eb31d56afb970dd0146 100644 (file)
@@ -36,8 +36,6 @@
 
 #include "AIEntity.hxx"
 
-extern ssgRoot* scene; // The global Flightgear scene graph
-
 FGAIEntity::~FGAIEntity() {
 }
 
@@ -55,7 +53,7 @@ void FGAIEntity::Transform() {
     sgCoord shippos;
     FastWorldCoordinate(&shippos, sc);
     position->setTransform( &shippos );
-    scene->addKid(position);
+    globals->get_scene_graph()->addKid(position);
     //cout << "Transform called\n";
 }