Update Airboss.lua

- Fix if unit skill is not set in env.mission (DCS bug that should be fixed by ED meanwhile).
This commit is contained in:
Frank 2020-10-03 21:43:09 +02:00
parent fb1e95ab87
commit 421d27f640

View File

@ -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.