Fix cluster array dimension to use costTypes size (#12658)

This commit is contained in:
sora54
2026-09-15 00:19:59 -04:00
committed by GitHub
parent 42ec5c9685
commit 4eed142ccc
+1 -1
View File
@@ -457,7 +457,7 @@ public class ControlPathfinder implements Runnable{
Cluster[][] dim1 = clusters[team];
if(dim1 == null){
dim1 = clusters[team] = new Cluster[Team.all.length][];
dim1 = clusters[team] = new Cluster[costTypes.size][];
}
Cluster[] dim2 = dim1[pathCost];