diff --git a/hwe/func_npc.php b/hwe/func_npc.php index 439188ea..7012584c 100644 --- a/hwe/func_npc.php +++ b/hwe/func_npc.php @@ -226,7 +226,7 @@ function SetCrew($no, $nationID, $personal, $gold, $leader, $genType, $tech, $de } if($types){ - if(!$allowedAction->randomRecruit && in_array($currentCrewType, $types) && $type == GameUnitConst::DEFAULT_CREWTYPE){ + if(!$allowedAction->randomRecruit && in_array($currentCrewType, $types) && $type != GameUnitConst::DEFAULT_CREWTYPE){ $type = $currentCrewType; } else{