From 0e23677e1b45555cd76ce54e76c995a4dbaed538 Mon Sep 17 00:00:00 2001 From: Jinhyun Kim Date: Sat, 29 Jul 2023 23:55:04 +0900 Subject: [PATCH] =?UTF-8?q?Merge=20pull=20request=20'fix:=20=EC=A7=95?= =?UTF-8?q?=EB=B3=91=20=EA=B0=80=EB=8A=A5=20=EC=97=AC=EB=B6=80=20=ED=8C=90?= =?UTF-8?q?=EB=B3=84=20=EC=8B=9C=20=EC=83=81=EB=8C=80=20=EB=85=84=EB=8F=84?= =?UTF-8?q?=20=ED=8C=90=EB=B3=84=20=EB=A1=9C=EC=A7=81=20=EC=98=A4=EB=A5=98?= =?UTF-8?q?=20=ED=95=B4=EA=B2=B0'=20(#233)=20from=20jyp9/core:relyearfix?= =?UTF-8?q?=20into=20devel?= 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 +}