mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-10-02 11:10:50 +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];
|
Cluster[][] dim1 = clusters[team];
|
||||||
|
|
||||||
if(dim1 == null){
|
if(dim1 == null){
|
||||||
dim1 = clusters[team] = new Cluster[Team.all.length][];
|
dim1 = clusters[team] = new Cluster[costTypes.size][];
|
||||||
}
|
}
|
||||||
|
|
||||||
Cluster[] dim2 = dim1[pathCost];
|
Cluster[] dim2 = dim1[pathCost];
|
||||||
|
|||||||
Reference in New Issue
Block a user