Skip to content

Commit d49a218

Browse files
committed
fix bug when new boids are added
1 parent df699ac commit d49a218

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed
-1 Bytes
Binary file not shown.

processing-mode/example3/java/src/main/java/test/Flock.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ protected float[][] getBoidLocations() {
3232
}
3333

3434
public void setBoidClusterLabels(int[] boidClusterLabels) {
35-
for (int i = 0; i < boids.size(); i++) {
35+
for (int i = 0; i < boidClusterLabels.length; i++) {
3636
boids.get(i).setClusterLabel(boidClusterLabels[i]);
3737
}
3838
}

0 commit comments

Comments
 (0)