#GROUP small fix

This commit is contained in:
Applevangelist 2024-06-09 18:31:59 +02:00
parent ceb77e2837
commit 4668132b37

View File

@ -1207,6 +1207,7 @@ function GROUP:GetCoordinate()
-- no luck, try the API way
local DCSGroup = Group.getByName(self.GroupName)
if DCSGroup then
local DCSUnits = DCSGroup:getUnits() or {}
for _,_unit in pairs(DCSUnits) do
if Object.isExist(_unit) then
@ -1219,6 +1220,7 @@ function GROUP:GetCoordinate()
end
end
end
end
BASE:E( { "Cannot GetCoordinate", Group = self, Alive = self:IsAlive() } )