From 2157164271777f5b33f22375ea632a4ad1c96579 Mon Sep 17 00:00:00 2001 From: James Turner Date: Sun, 23 Oct 2011 15:33:00 +0100 Subject: [PATCH] Fix some code which clang didn't like --- src/Autopilot/digitalcomponent.hxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Autopilot/digitalcomponent.hxx b/src/Autopilot/digitalcomponent.hxx index afff879ba..ebcee36fd 100644 --- a/src/Autopilot/digitalcomponent.hxx +++ b/src/Autopilot/digitalcomponent.hxx @@ -62,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