diff --git a/GameEngine/Automation.php b/GameEngine/Automation.php index a3f711f6..87dcf0c2 100755 --- a/GameEngine/Automation.php +++ b/GameEngine/Automation.php @@ -4009,8 +4009,14 @@ class Automation { // global $$unit; // $dataarray = $$unit; if($prisoners == 0){ + if (!isset($array['hero'])) { + $array['hero'] = 0; + } $upkeep += $array['hero'] * 6; }else{ + if (!isset($array['t11'])) { + $array['t11'] = 0; + } $upkeep += $array['t11'] * 6; } $who=$database->getVillageField($vid,"owner");