]> git.mxchange.org Git - simgear.git/commitdiff
Fix inverted logic in any-bindings test.
authorJames Turner <zakalawe@mac.com>
Mon, 8 Aug 2016 15:59:06 +0000 (16:59 +0100)
committerRoland Haeder <roland@mxchange.org>
Sat, 13 Aug 2016 08:21:16 +0000 (10:21 +0200)
simgear/structure/SGBinding.cxx

index 86420be15c6ad6c7d478dd72b9bc6407fd78745b..4a0d0326b5a10b8bbd1ef2789201a0ce7f38cc2b 100644 (file)
@@ -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;
 }