X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FAutopilot%2Fdigitalcomponent.hxx;h=ebcee36fddeb2d90faa229f84502a2e957c47153;hb=ff91fec1bb4b59dc2a7084de2a5ab0469abb1f3e;hp=606dd5f8b1db6444db94e18a7f11019bafbd4fd1;hpb=52ac173257bf9cc780f0faee5049314442083140;p=flightgear.git diff --git a/src/Autopilot/digitalcomponent.hxx b/src/Autopilot/digitalcomponent.hxx index 606dd5f8b..ebcee36fd 100644 --- a/src/Autopilot/digitalcomponent.hxx +++ b/src/Autopilot/digitalcomponent.hxx @@ -25,6 +25,9 @@ #include "component.hxx" +#include +#include + 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