diff --git a/hwe/func_converter.php b/hwe/func_converter.php index 6c452178..e59bed3f 100644 --- a/hwe/func_converter.php +++ b/hwe/func_converter.php @@ -465,7 +465,7 @@ function getTechLevel($tech):int{ function TechLimit($startyear, $year, $tech) : bool { - $relYear = $startyear - $year; + $relYear = $year - $startyear; $relMaxTech = Util::valueFit( floor($relYear / 5) + 1,