From 8861a578e4513b24bf4469bdf9b25c47a746f459 Mon Sep 17 00:00:00 2001 From: iopietro Date: Sun, 17 Jun 2018 01:48:40 +0200 Subject: [PATCH] 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.) --- GameEngine/Automation.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GameEngine/Automation.php b/GameEngine/Automation.php index c7ba7a7c..82ebcd9d 100755 --- a/GameEngine/Automation.php +++ b/GameEngine/Automation.php @@ -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]); } } }