diff --git a/src/engine/InterestManagement/HeightMap.java b/src/engine/InterestManagement/HeightMap.java index 7c09c945..8550b2ad 100644 --- a/src/engine/InterestManagement/HeightMap.java +++ b/src/engine/InterestManagement/HeightMap.java @@ -144,6 +144,8 @@ public class HeightMap { } } + bucketCountX = this.pixelColorValues.length - 1; + bucketCountY = this.pixelColorValues[0].length - 1; } public HeightMap(Zone zone) { @@ -175,6 +177,8 @@ public class HeightMap { } } + bucketCountX = this.pixelColorValues.length - 1; + bucketCountY = this.pixelColorValues[0].length - 1; } public static void GeneratePlayerCityHeightMap() {