Small bugfix

This commit is contained in:
Moritz Dieing 2021-08-25 14:02:54 +02:00
parent d9572665df
commit 4d0e0fea3e

View File

@ -182,7 +182,6 @@ public class ExplanationCreatorUnification {
}
List<Substitution> substitutions = subs.unwrap();
List<Constraint> constraints = step.getConstraints();
if (currentConstraint.getFirstType().equals(currentConstraint.getSecondType())) {
// trivial constraint
createTrivialConstraintText(currentConstraint);
@ -196,8 +195,7 @@ public class ExplanationCreatorUnification {
currentConstraint, substitutions.get(substitutions.size() - 1));
} else {
// both sides are functions
createFunctionText(currentConstraint,
constraints.get(constraints.size() - 1), constraints.get(constraints.size() - 2));
createFunctionText(currentConstraint, step.getConstraints().get(0), step.getConstraints().get(1));
}
}
}