]> git.mxchange.org Git - flightgear.git/blobdiff - src/AIModel/AIGroundVehicle.cxx
Trivial cleanup commit, to test continuous integration server.
[flightgear.git] / src / AIModel / AIGroundVehicle.cxx
index f7a6a1d9ff02f7533ac85ecc3c119d5bac7981eb..bde684941ef443f1f0e90851e96bcbc8fe14a911 100644 (file)
@@ -349,10 +349,10 @@ bool FGAIGroundVehicle::getPitch() {
 
 void FGAIGroundVehicle::setParent() {
 
-    const SGPropertyNode *ai = fgGetNode("/ai/models", true);
+    const SGPropertyNode_ptr ai = fgGetNode("/ai/models", true);
 
     for (int i = ai->nChildren() - 1; i >= -1; i--) {
-        const SGPropertyNode *model;
+        SGPropertyNode_ptr model;
 
         if (i < 0) { // last iteration: selected model
             model = _selected_ac;