Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent iterator from incrementing after basic variable found #54

Merged
merged 9 commits into from
May 26, 2018
6 changes: 4 additions & 2 deletions src/engine/Engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -452,8 +452,10 @@ void Engine::fixViolatedPlConstraintIfPossible()
found = true;
}
}

++it;
if ( !found )
{
++it;
}
}

// If we couldn't find an eligible fix, give up
Expand Down