From 899778b35483c978e770a92b5af426ce10870345 Mon Sep 17 00:00:00 2001 From: James Turner Date: Mon, 8 Aug 2016 16:59:06 +0100 Subject: [PATCH] Fix inverted logic in any-bindings test. --- simgear/structure/SGBinding.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; }