From 98ecb3998464a947b545831a298e5774a05a46fc Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 30 Jul 2012 23:03:50 +0300 Subject: [PATCH] fix granery problem --- GameEngine/Automation.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GameEngine/Automation.php b/GameEngine/Automation.php index 43bf7107..53a2a0bc 100644 --- a/GameEngine/Automation.php +++ b/GameEngine/Automation.php @@ -402,7 +402,7 @@ class Automation { $q = "UPDATE " . TB_PREFIX . "odata set maxstore = $maxstore, maxcrop = $maxcrop where wref = ".$getoasis['wref'].""; $database->query($q); } - $q = "SELECT * FROM ".TB_PREFIX."odata WHERE wood > maxstore OR clay > maxstore OR iron > maxstore OR crop > maxstore"; + $q = "SELECT * FROM ".TB_PREFIX."odata WHERE wood > maxstore OR clay > maxstore OR iron > maxstore OR crop > maxcrop"; $array = $database->query_return($q); foreach($array as $getoasis) { if($getoasis['wood'] > $getoasis['maxstore']){ @@ -475,7 +475,7 @@ class Automation { $q = "UPDATE " . TB_PREFIX . "vdata set maxstore = $maxstore, maxcrop = $maxcrop where wref = ".$getvillage['wref'].""; $database->query($q); } - $q = "SELECT * FROM ".TB_PREFIX."vdata WHERE wood > maxstore OR clay > maxstore OR iron > maxstore OR crop > maxstore"; + $q = "SELECT * FROM ".TB_PREFIX."vdata WHERE wood > maxstore OR clay > maxstore OR iron > maxstore OR crop > maxcrop"; $array = $database->query_return($q); foreach($array as $getvillage) { if($getvillage['wood'] > $getvillage['maxstore']){