Commit 4ce9fc05 authored by Joseph Mirabel's avatar Joseph Mirabel
Browse files

Make GoalConfigurations problem target safer.

parent 771acf28
......@@ -45,6 +45,7 @@ namespace hpp {
bool GoalConfigurations::reached (const RoadmapPtr_t& roadmap) const
{
if (!roadmap->initNode ()) return false;
const ConnectedComponentPtr_t ccInit = roadmap->initNode ()->connectedComponent ();
const NodeVector_t& goals = roadmap->goalNodes();
for (NodeVector_t::const_iterator _goal = goals.begin (); _goal != goals.end (); ++_goal) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment