diff --git a/src/steering-method/cross-state-optimization.cc b/src/steering-method/cross-state-optimization.cc index 1150083a773685302eb1b56ff88d519ff50fbb90..e4e5afe54a912d2e816010aeec49bdbd117e5fd1 100644 --- a/src/steering-method/cross-state-optimization.cc +++ b/src/steering-method/cross-state-optimization.cc @@ -322,9 +322,9 @@ namespace hpp { (OptimizationData& d, size_type index) const { const ImplicitPtr_t c (constraints_ [index]); - LiegroupElement rhsInit; + LiegroupElement rhsInit(c->function().outputSpace()); c->rightHandSideFromConfig (d.q1, rhsInit); - LiegroupElement rhsGoal; + LiegroupElement rhsGoal(c->function().outputSpace()); c->rightHandSideFromConfig (d.q2, rhsGoal); // Check that right hand sides are close to each other value_type eps (problem_->constraintGraph ()->errorThreshold ());