From 062fef49a1784130d085978752806c492d7981cd Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sat, 24 Aug 2024 18:01:16 -0400 Subject: [PATCH] Added debug code --- src/engine/objects/Building.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/engine/objects/Building.java b/src/engine/objects/Building.java index b9d11769..5cd914bc 100644 --- a/src/engine/objects/Building.java +++ b/src/engine/objects/Building.java @@ -597,6 +597,11 @@ public class Building extends AbstractWorldObject { return; } + if (city.destroyed.get() == true) { + Logger.error(city.getName() + "attemp to destroy a destroyed city"); + return; + } + // Must remove a bane before considering destruction of a TOL if (bane != null) {