mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user