Update Airboss.lua

- Fix for DCS bug that skill is not set in env.mission. Should not happen in current DCS version anyway.
This commit is contained in:
Frank 2020-10-03 21:41:35 +02:00
parent 59f795fc17
commit e2c1097ec5

View File

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