From 7ce44a2b075749c0fbaae96fae5528edbc21cf45 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; } -- 2.39.5