diff --git a/hwe/sammo/GeneralAI.php b/hwe/sammo/GeneralAI.php index 60021fd5..4028bc1e 100644 --- a/hwe/sammo/GeneralAI.php +++ b/hwe/sammo/GeneralAI.php @@ -516,6 +516,9 @@ class GeneralAI if(!key_exists($userGeneral->getCityID(), $this->frontCities)){ continue; } + if(!key_exists($userGeneral->getCityID(), $this->nationCities)){ + continue; + } $city = $this->supplyCities[$userGeneral->getCityID()]; $troopLeaderID = $userGeneral->getVar('troop'); if(!$troopLeaderID || !key_exists($troopLeaderID, $this->troopLeaders)){