From 6809988e9c2e907d2ff4315390a7d661d7956561 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Wed, 11 Oct 2023 11:15:41 -0400 Subject: [PATCH] bugfix in variable assignment --- src/engine/InterestManagement/Terrain.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/InterestManagement/Terrain.java b/src/engine/InterestManagement/Terrain.java index 883184ea..9509b07b 100644 --- a/src/engine/InterestManagement/Terrain.java +++ b/src/engine/InterestManagement/Terrain.java @@ -126,7 +126,7 @@ public class Terrain { if (terrain_cell.x >= this.cell_count.x) terrain_cell.x = terrain_cell.x - 1; - if (terrain_cell.x >= this.cell_count.y) + if (terrain_cell.y >= this.cell_count.y) terrain_cell.y = terrain_cell.y - 1; return terrain_cell;