From 26a3ea4b18b57ba825e862306f6426abcc0140d9 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Wed, 20 Sep 2023 11:38:39 -0400 Subject: [PATCH] Release bounds after usage. --- src/engine/InterestManagement/HeightMap.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/engine/InterestManagement/HeightMap.java b/src/engine/InterestManagement/HeightMap.java index 44de1097..89b603b2 100644 --- a/src/engine/InterestManagement/HeightMap.java +++ b/src/engine/InterestManagement/HeightMap.java @@ -255,6 +255,8 @@ public class HeightMap { float zoneArea = (heightMapZone.getBounds().getHalfExtents().x) * (heightMapZone.getBounds().getHalfExtents().y); + blendBounds.release(); + float blendDelta = zoneArea - maxBlendArea; float currentDelta = zoneArea - currentArea;