updated for LuaLS findings
PR Prerequisites / Lua Check (pull_request) Successful in 19s
PR Prerequisites / Bundles Without Errors (pull_request) Failing after 28s

This commit is contained in:
2026-09-20 16:12:57 +02:00
parent e9fd3921a6
commit 205efbee8a
3 changed files with 8 additions and 6 deletions
+3 -2
View File
@@ -293,7 +293,8 @@ do -- INIT DCS_UTIL
if Util.tableLength(group_names) < 1 then return {} end
for k = 1, #group_names do
local entry = nil
---@type { unit : Unit|StaticObject|nil, groupname: string }|nil
local entry
local group = Group.getByName(group_names[k])
if group ~= nil then
entry = { unit = group:getUnit(1), groupname = group_names[k] }
@@ -302,7 +303,7 @@ do -- INIT DCS_UTIL
end
if entry and entry.unit and entry.unit:isExist() == true then
units[#units + 1] = entry
units[#units + 1] = { groupname = entry.groupname, unit = entry.unit }
end
end