mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-09 16:14:13 +00:00
This commit is contained in:
@@ -317,6 +317,10 @@ proc/listclearnulls(list/list)
|
||||
return (result + L.Copy(Li, 0))
|
||||
return (result + R.Copy(Ri, 0))
|
||||
|
||||
/proc/find_record(field, value, list/L)
|
||||
for(var/datum/data/record/R in L)
|
||||
if(R.fields[field] == value)
|
||||
return R
|
||||
|
||||
//Move a single element from position fromIndex within a list, to position toIndex
|
||||
//This will preserve associations ~Carnie
|
||||
@@ -396,8 +400,3 @@ proc/listclearnulls(list/list)
|
||||
L.Swap(start++,end--)
|
||||
|
||||
return L
|
||||
|
||||
/proc/find_record(field, value, list/L)
|
||||
for(var/datum/data/record/R in L)
|
||||
if(R.fields[field] == value)
|
||||
return R
|
||||
Reference in New Issue
Block a user