Merge pull request #2282 from shaji-Dev/master

[FIXED] Returns nil for late activated templates we use to mark paths to use in our scripts
This commit is contained in:
Thomas 2025-04-17 08:44:38 +02:00 committed by GitHub
commit 5d93b33d42
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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