Updates for Anapa. Fixed a bug in SPAWN (small bug)

This commit is contained in:
svenvandevelde
2016-05-06 14:21:24 +02:00
parent 4adf5aa188
commit bfeaa961f6
3 changed files with 11 additions and 4 deletions

View File

@@ -345,6 +345,12 @@ function DATABASE:_RegisterGroup( GroupTemplate )
self.Groups[GroupTemplateName] = {}
self.Groups[GroupTemplateName].Status = nil
end
-- Delete the spans from the route, it is not needed and takes memory.
if GroupTemplate.route and GroupTemplate.route.spans then
GroupTemplate.route.spans = nil
end
self.Groups[GroupTemplateName].GroupName = GroupTemplateName
self.Groups[GroupTemplateName].Template = GroupTemplate
self.Groups[GroupTemplateName].groupId = GroupTemplate.groupId