From: James Turner Date: Mon, 8 Aug 2016 15:59:06 +0000 (+0100) Subject: Fix inverted logic in any-bindings test. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7ce44a2b075749c0fbaae96fae5528edbc21cf45;p=simgear.git Fix inverted logic in any-bindings test. --- diff --git a/simgear/structure/SGBinding.cxx b/simgear/structure/SGBinding.cxx index 86420be1..4a0d0326 100644 --- a/simgear/structure/SGBinding.cxx +++ b/simgear/structure/SGBinding.cxx @@ -172,11 +172,11 @@ bool anyBindingEnabled(const SGBindingList& aBindings) } BOOST_FOREACH(SGBinding_ptr b, aBindings) { - if (!b->test()) { - return false; + if (b->test()) { + return true; } } - return true; + return false; }