#BRIGADE Fixes to save/loadback assets for persistence

This commit is contained in:
Applevangelist
2024-02-27 18:13:41 +01:00
parent c36dbe1b09
commit 1e954de951
3 changed files with 8 additions and 5 deletions

View File

@@ -2644,6 +2644,9 @@ function UTILS.SaveSetOfGroups(Set,Path,Filename,Structured)
if group and group:IsAlive() then
local name = group:GetName()
local template = string.gsub(name,"-(.+)$","")
if string.find(name,"AID") then
template = string.gsub(name,"(.AID.%d+$","")
end
if string.find(template,"#") then
template = string.gsub(name,"#(%d+)$","")
end