Browse Source

Error trap added

magicbox-1.5.2
MagicBot 10 months ago
parent
commit
c45265b085
  1. 5
      src/engine/gameManager/MaintenanceManager.java

5
src/engine/gameManager/MaintenanceManager.java

@ -45,10 +45,13 @@ public enum MaintenanceManager {
// Deduct upkeep and build list of buildings // Deduct upkeep and build list of buildings
// which did not have funds available // which did not have funds available
try {
for (Building building : maintList) for (Building building : maintList)
if (chargeUpkeep(building) == false) if (chargeUpkeep(building) == false)
derankList.add(building); derankList.add(building);
} catch (Exception e) {
Logger.error(e);
}
// Reset maintenance dates for these buildings // Reset maintenance dates for these buildings
for (Building building : maintList) for (Building building : maintList)

Loading…
Cancel
Save