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){