]> git.mxchange.org Git - flightgear.git/blobdiff - src/Autopilot/digitalcomponent.hxx
Fix various route-manager issues reported by Hyde.
[flightgear.git] / src / Autopilot / digitalcomponent.hxx
index 606dd5f8b1db6444db94e18a7f11019bafbd4fd1..ebcee36fddeb2d90faa229f84502a2e957c47153 100644 (file)
@@ -25,6 +25,9 @@
 
 #include "component.hxx"
 
+#include <simgear/props/props.hxx>
+#include <simgear/props/condition.hxx>
+
 namespace FGXMLAutopilot {
 
 /**
@@ -59,7 +62,8 @@ inline DigitalOutput::DigitalOutput() : _inverted(false)
 
 inline void DigitalOutput::setProperty( SGPropertyNode_ptr node ) 
 { 
-  _node->setBoolValue( (_node = node)->getBoolValue() );
+  _node = node;
+  _node->setBoolValue( node->getBoolValue() );
 }
 
 inline bool DigitalOutput::getValue() const