From 18c423dd5e77714ce4244271bf77ccf044f05061 Mon Sep 17 00:00:00 2001 From: TPLinux Date: Thu, 29 Jun 2017 06:03:17 +0000 Subject: [PATCH] Fixing finish all with tow gold from dorf(1,2) --- GameEngine/Building.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GameEngine/Building.php b/GameEngine/Building.php index 98242098..f78ab981 100755 --- a/GameEngine/Building.php +++ b/GameEngine/Building.php @@ -97,7 +97,7 @@ class Building { } } if(isset($get['buildingFinish']) && $session->plus) { - if($session->gold >= 2 && $session->sit == 0) { + if(intval($session->gold) >= 2 && $session->sit == 0) { // edit by TPLinux $this->finishAll(); } }