[MIRROR] de-reference save_data lists (#9067)

Co-authored-by: Heroman3003 <31296024+Heroman3003@users.noreply.github.com>
Co-authored-by: Kashargul <KashL@t-online.de>
This commit is contained in:
CHOMPStation2
2024-09-27 20:05:23 -07:00
committed by GitHub
parent 9e524184c1
commit f37f844f5a
10 changed files with 80 additions and 33 deletions

View File

@@ -607,3 +607,21 @@
if(!isnull(path))
. += path
/proc/path2text_list(list/L)
. = list()
for(var/key in L)
var/text = "[key]"
if(!isnull(L[text]))
.[text] = L[text]
continue
if(!isnull(L[key]))
.[text] = L[key]
continue
if(!isnull(text))
.[text] = ""
/proc/check_list_copy(var/i)
if(islist(i))
var/list/l = i
return l.Copy()
return i