mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-10-01 18:50:27 +03:00
Fix cluster array dimension to use costTypes size (#12658)
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user