Commits

Mark Moll  committed 841bcc4

small bug caught by Caleb Voss

  • Participants
  • Parent commits d5f29b2

Comments (0)

Files changed (1)

File src/ompl/base/src/ProjectionEvaluator.cpp

 {
     if (!space_->isCompound())
         throw Exception("Cannot construct a subspace projection evaluator for a space that is not compound");
-    if (space_->as<CompoundStateSpace>()->getSubspaceCount() >= index_)
+    if (space_->as<CompoundStateSpace>()->getSubspaceCount() <= index_)
         throw Exception("State space " + space_->getName() + " does not have a subspace at index " + boost::lexical_cast<std::string>(index_));
 }