From 085f79cefd4eeb34f717ced51e6ad362a5f8d104 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Mon, 9 Oct 2023 06:14:06 -0400 Subject: [PATCH] Sanity check added --- src/engine/InterestManagement/Terrain.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/engine/InterestManagement/Terrain.java b/src/engine/InterestManagement/Terrain.java index 403179b9..9fed2cd9 100644 --- a/src/engine/InterestManagement/Terrain.java +++ b/src/engine/InterestManagement/Terrain.java @@ -62,6 +62,9 @@ public class Terrain { Zone terrain_zone = zone; + if (zone == null) + return ZoneManager.getSeaFloor(); + if (zone.terrain != null) return zone;