From 43285662decf23022d7e1b00259c296dea08241e Mon Sep 17 00:00:00 2001 From: Jinhyun Kim Date: Sat, 29 Jul 2023 23:55:04 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=A7=95=EB=B3=91=20=EA=B0=80=EB=8A=A5?= =?UTF-8?q?=20=EC=97=AC=EB=B6=80=20=ED=8C=90=EB=B3=84=20=EC=8B=9C=20?= =?UTF-8?q?=EC=83=81=EB=8C=80=20=EB=85=84=EB=8F=84=20=ED=8C=90=EB=B3=84=20?= =?UTF-8?q?=EB=A1=9C=EC=A7=81=20=EC=98=A4=EB=A5=98=20=ED=95=B4=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/sammo/Constraint/AvailableRecruitCrewType.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hwe/sammo/Constraint/AvailableRecruitCrewType.php b/hwe/sammo/Constraint/AvailableRecruitCrewType.php index b083a39a..d4dcf4e4 100644 --- a/hwe/sammo/Constraint/AvailableRecruitCrewType.php +++ b/hwe/sammo/Constraint/AvailableRecruitCrewType.php @@ -53,11 +53,11 @@ class AvailableRecruitCrewType extends Constraint{ } $crewType = GameUnitConst::byID($this->arg); - if($crewType->isValid($ownCities, $ownRegions, $year = $startyear, $tech)){ + if($crewType->isValid($ownCities, $ownRegions, $year - $startyear, $tech)){ return true; } $this->reason = "현재 선택할 수 없는 병종입니다."; return false; } -} \ No newline at end of file +}