From 7bc720be77652964bdd932f43ac6fceb36d32ca9 Mon Sep 17 00:00:00 2001 From: hide_d Date: Sat, 25 Apr 2020 20:59:13 +0900 Subject: [PATCH] =?UTF-8?q?=EB=B2=84=EA=B7=B8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/sammo/GeneralAI.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hwe/sammo/GeneralAI.php b/hwe/sammo/GeneralAI.php index 5f5a2dd5..31ab30dc 100644 --- a/hwe/sammo/GeneralAI.php +++ b/hwe/sammo/GeneralAI.php @@ -3335,7 +3335,9 @@ class GeneralAI $setChiefLevel["l{$chiefLevel}set"] = 1; } - $db->update('nation', $setChiefLevel, 'nation=%i', $this->nation['nation']); + if($setChiefLevel){ + $db->update('nation', $setChiefLevel, 'nation=%i', $this->nation['nation']); + } } protected function calcCityDevelRate(array $city){