diff --git a/src/engine/gameManager/MaintenanceManager.java b/src/engine/gameManager/MaintenanceManager.java index f92d531e..d4dcf63a 100644 --- a/src/engine/gameManager/MaintenanceManager.java +++ b/src/engine/gameManager/MaintenanceManager.java @@ -59,8 +59,12 @@ public enum MaintenanceManager { // Derak or destroy buildings that did not // have funds available. - for (Building building : derankList) - building.destroyOrDerank(null); + try { + for (Building building : derankList) + building.destroyOrDerank(null); + } catch (Exception e) { + Logger.error(e); + } Logger.info("Structures: " + buildingList.size() + " Maint: " + maintList.size() + " Derank: " + derankList.size()); }