#LEGION Fix for MinDistance when nil and spawning on a ship

This commit is contained in:
Applevangelist
2026-04-08 14:43:53 +02:00
parent 1071300a7f
commit 51e5f53965
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -2581,7 +2581,7 @@ end
-- @return #boolean Returns `true` if given cohort can meet all requirements.
function LEGION._CohortCan(Cohort, MissionType, Categories, Attributes, Properties, WeaponTypes, TargetVec2, RangeMax, RefuelSystem, CargoWeight, MaxWeight, RangeMin)
RangeMin = RangeMin or 0
RangeMin = RangeMin or -1
--- Function to check category.
local function CheckCategory(_cohort)