Browse Source

Error trap when deranking during maintenance.

combat-2
MagicBot 11 months ago
parent
commit
79400b6b0e
  1. 8
      src/engine/gameManager/MaintenanceManager.java

8
src/engine/gameManager/MaintenanceManager.java

@ -45,17 +45,15 @@ public enum MaintenanceManager { @@ -45,17 +45,15 @@ public enum MaintenanceManager {
// Deduct upkeep and build list of buildings
// which did not have funds available
for (Building building : maintList) {
for (Building building : maintList)
if (chargeUpkeep(building) == false)
derankList.add(building);
}
// Reset maintenance dates for these buildings
for (Building building : maintList) {
for (Building building : maintList)
setMaintDateTime(building, LocalDateTime.now().plusDays(7));
}
// Derak or destroy buildings that did not
// have funds available.

Loading…
Cancel
Save