From e2c1097ec57a5ea7783a0a0a863ea46cf8f7e54f Mon Sep 17 00:00:00 2001 From: Frank Date: Sat, 3 Oct 2020 21:41:35 +0200 Subject: [PATCH] Update Airboss.lua - Fix for DCS bug that skill is not set in env.mission. Should not happen in current DCS version anyway. --- Moose Development/Moose/Ops/Airboss.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Moose Development/Moose/Ops/Airboss.lua b/Moose Development/Moose/Ops/Airboss.lua index b990c6c9c..51b053471 100644 --- a/Moose Development/Moose/Ops/Airboss.lua +++ b/Moose Development/Moose/Ops/Airboss.lua @@ -14048,10 +14048,10 @@ function AIRBOSS:_GetOnboardNumbers(group, playeronly) -- Onboard number and unit name. local n=tostring(unit.onboard_num) local name=unit.name - local skill=unit.skill + local skill=unit.skill or "Unknown" -- Debug text. - text=text..string.format("\n- unit %s: onboard #=%s skill=%s", name, n, skill) + text=text..string.format("\n- unit %s: onboard #=%s skill=%s", name, n, tostring(skill)) if playeronly and skill=="Client" or skill=="Player" then -- There can be only one player in the group, so we skip everything else.