Improvements on Patrol

This commit is contained in:
FlightControl_Master
2017-09-25 12:55:02 +02:00
parent bc072d10df
commit e1f4bdc24b
6 changed files with 76 additions and 18 deletions

View File

@@ -938,7 +938,7 @@ end
-- @return #table
function GROUP:GetTemplate()
local GroupName = self:GetName()
return _DATABASE:GetGroupTemplate( GroupName )
return UTILS.DeepCopy( _DATABASE:GetGroupTemplate( GroupName ) )
end
--- Returns the group template route.points[] (the waypoints) from the @{DATABASE} (_DATABASE object).
@@ -946,7 +946,7 @@ end
-- @return #table
function GROUP:GetTemplateRoutePoints()
local GroupName = self:GetName()
return _DATABASE:GetGroupTemplate( GroupName ).route.points
return UTILS.DeepCopy( _DATABASE:GetGroupTemplate( GroupName ).route.points )
end