refactor: preparation to vdata queries consolidation

#313
This commit is contained in:
Martin Ambrus
2017-11-20 00:52:24 +01:00
parent 66132a7cdf
commit c27b397016
2 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -4242,7 +4242,7 @@ class Automation {
}
$crop = $database->getCropProdstarv($train['vref'], false);
$unitarrays = $this->getAllUnits($train['vref'], false);
$village = $database->getVillage($train['vref'], false);
$village = $database->getVillage($train['vref'], 0, false);
$upkeep = $village['pop'] + $this->getUpkeep($unitarrays, 0);
$starv = $database->getVillageField($train['vref'],"starv");
if ($crop < $upkeep){