]> git.mxchange.org Git - flightgear.git/blobdiff - src/Autopilot/autopilot.cxx
Interim windows build fix
[flightgear.git] / src / Autopilot / autopilot.cxx
index 8fa6a5cc8e9aadcccb9a0e2adcd4382f4070bc36..b332647dcb0cbd71159075a04407be7c9df61e2e 100644 (file)
@@ -49,8 +49,8 @@ using namespace FGXMLAutopilot;
 class StateMachineComponent : public Component
 {
 public:
-  StateMachineComponent( SGPropertyNode& cfg,
-                         SGPropertyNode& props_root )
+  StateMachineComponent( SGPropertyNode& props_root,
+                         SGPropertyNode& cfg )
   {
     inner = simgear::StateMachine::createFromPlist(&cfg, &props_root);
   }
@@ -110,7 +110,7 @@ void readInterfaceProperties( SGPropertyNode_ptr prop_root,
 
       // TODO should we keep the _attr_ node, as soon as the property browser is
       //      able to cope with it?
-      (*it)->removeChild("_attr_", 0, false);
+      (*it)->removeChild("_attr_", 0);
     }
   }
 }
@@ -211,7 +211,7 @@ void Autopilot::add_component( Component * component, double updateInterval )
       name = buf.str();
   }
   if( name != component->get_name() )
-    SG_LOG( SG_ALL, SG_WARN, "Duplicate autopilot component " << component->get_name() << ", renamed to " << name );
+    SG_LOG( SG_AUTOPILOT, SG_WARN, "Duplicate autopilot component " << component->get_name() << ", renamed to " << name );
 
   set_subsystem( name.c_str(), component, updateInterval );
 }