Skip to content

Commit

Permalink
Fix incorrect comparator in PrioritizedPartPos
Browse files Browse the repository at this point in the history
  • Loading branch information
rubensworks committed Jun 10, 2024
1 parent a15e47f commit 9f9c21c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public int compareTo(PrioritizedPartPos o) {
if (compPos == 0) {
Direction thisSide = this.getPartPos().getSide();
Direction otherSide = o.getPartPos().getSide();
return thisSide == null ? -1 : (otherSide == null ? 1 : thisSide.compareTo(otherSide));
return thisSide == null ? (otherSide == null ? 0 : -1) : (otherSide == null ? 1 : thisSide.compareTo(otherSide));
}
return compPos;
}
Expand Down

0 comments on commit 9f9c21c

Please sign in to comment.