Skip to content

Commit

Permalink
General fixes
Browse files Browse the repository at this point in the history
+Fixed a bug that didn't update the starvation correctly, when
starvation data was updated (for example: troops in training, attacks
completed, etc.)
  • Loading branch information
iopietro committed Jun 16, 2018
1 parent b61bdc9 commit 8861a57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GameEngine/Automation.php
Original file line number Diff line number Diff line change
Expand Up @@ -3889,7 +3889,7 @@ private function addStarvationData($wref){
$starv = $getVillage['starv'];
if ($crop < $villageUpkeep){
//Add starvation data
$database->setVillageFields($wref, ['starv', 'starvupdate'], [$villageUpkeep, time()]);
$database->setVillageFields($wref, ['starv'], [$villageUpkeep]);
}
}
}
Expand Down

0 comments on commit 8861a57

Please sign in to comment.