const lmm::Constraint* cnst = action.get_variable()->get_constraint(i);
while (cnst != nullptr) {
i++;
- const Resource* constraint_id = cnst->get_id();
- if (not constraint_id->is_on()) {
+ if (not cnst->get_id()->is_on()) {
XBT_DEBUG("Action (%p) Failed!!", &action);
action.finish(Action::State::FAILED);
break;