From f8f0420f90846b5e42454c388a7acdd42c5fe438 Mon Sep 17 00:00:00 2001 From: Joseph Mirabel <jmirabel@laas.fr> Date: Sat, 20 Aug 2016 18:21:56 +0200 Subject: [PATCH] Fix validity check of cases in graph::helper. --- src/graph/helper.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/graph/helper.cc b/src/graph/helper.cc index c31e28a..bf40b21 100644 --- a/src/graph/helper.cc +++ b/src/graph/helper.cc @@ -121,7 +121,7 @@ namespace hpp { static const bool valid = ( (gCase & WithPreGrasp) || (gCase & GraspOnly) || (gCase & NoGrasp) ) && ( (gCase & WithPrePlace) || (gCase & PlaceOnly) || (gCase & NoPlace) ) - && !(gCase == (NoGrasp | NoPlace)); + && !((gCase & NoGrasp) && (gCase & NoPlace)); static const std::size_t nbWaypoints = (pregrasp?1:0) + (intersec?1:0) + (preplace?1:0); static const std::size_t Nnodes = 2 + nbWaypoints; -- GitLab