Skip to content

Commit

Permalink
Fix logic error again in CCB constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
Axionize committed Nov 21, 2024
1 parent 75ff92c commit 3d5491d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public ComplexCollisionBox(int maxIndex) {

public ComplexCollisionBox(int maxIndex, SimpleCollisionBox... boxes) {
this.boxes = new SimpleCollisionBox[maxIndex];
System.arraycopy(boxes, 0, this.boxes, 0, maxIndex);
System.arraycopy(boxes, 0, this.boxes, 0, Math.min(maxIndex, boxes.length));
maxLength = boxes.length;
}

Expand Down

0 comments on commit 3d5491d

Please sign in to comment.