General fixes

+Fixed a bug that didn't update the starvation correctly, when
starvation data was updated (for example: troops in training, attacks
completed, etc.)
This commit is contained in:
iopietro
2018-06-17 01:48:40 +02:00
parent b61bdc980f
commit 8861a578e4
+1 -1
View File
@@ -3889,7 +3889,7 @@ class Automation {
$starv = $getVillage['starv'];
if ($crop < $villageUpkeep){
//Add starvation data
$database->setVillageFields($wref, ['starv', 'starvupdate'], [$villageUpkeep, time()]);
$database->setVillageFields($wref, ['starv'], [$villageUpkeep]);
}
}
}