Merge pull request #2278 from leka1986/patch-5

Update Group.lua
This commit is contained in:
Thomas
2025-04-12 10:51:42 +02:00
committed by GitHub

View File

@@ -1842,8 +1842,12 @@ end
-- @param #GROUP self
-- @return #table
function GROUP:GetTemplateRoutePoints()
if not self or not self:IsAlive() then return end
local GroupName = self:GetName()
return UTILS.DeepCopy( _DATABASE:GetGroupTemplate( GroupName ).route.points )
local template = _DATABASE:GetGroupTemplate(GroupName)
if template and template.route and template.route.points then
return UTILS.DeepCopy(template.route.points)
end
end