]> git.mxchange.org Git - flightgear.git/blobdiff - src/AIModel/AIEscort.cxx
Trivial cleanup commit, to test continuous integration server.
[flightgear.git] / src / AIModel / AIEscort.cxx
index 80ef3232579af69fa89973d241c883a3f21aab7a..c9901ca24630d7e5c2ba6373c909376c7c453e48 100644 (file)
@@ -39,6 +39,8 @@
 
 #include "AIEscort.hxx"
 
+using std::string;
+
 FGAIEscort::FGAIEscort() :
 FGAIShip(otEscort),
 
@@ -233,10 +235,10 @@ bool FGAIEscort::getGroundElev(SGGeod inpos) {
 
 void FGAIEscort::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;