From 421d27f6404c6015fe022bf0dd7493aa380bcb6a Mon Sep 17 00:00:00 2001 From: Frank Date: Sat, 3 Oct 2020 21:43:09 +0200 Subject: [PATCH] Update Airboss.lua - Fix if unit skill is not set in env.mission (DCS bug that should be fixed by ED meanwhile). --- 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 c0009886d..c5fa5ce49 100644 --- a/Moose Development/Moose/Ops/Airboss.lua +++ b/Moose Development/Moose/Ops/Airboss.lua @@ -14117,10 +14117,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.