From 7793fab5d2fb6cca7adb7245c828258d7af69412 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Wed, 20 Sep 2023 14:14:55 -0400 Subject: [PATCH] Unnecessary initialization. --- src/engine/InterestManagement/HeightMap.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/engine/InterestManagement/HeightMap.java b/src/engine/InterestManagement/HeightMap.java index 5b8e18b7..85b8f661 100644 --- a/src/engine/InterestManagement/HeightMap.java +++ b/src/engine/InterestManagement/HeightMap.java @@ -417,10 +417,10 @@ public class HeightMap { //get height of the 4 vertices. - float topLeftHeight = 0; - float topRightHeight = 0; - float bottomLeftHeight = 0; - float bottomRightHeight = 0; + float topLeftHeight; + float topRightHeight; + float bottomLeftHeight; + float bottomRightHeight; int nextY = gridY + 1; int nextX = gridX + 1;