mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 18:32:03 +00:00
micro optimization, Cut() to len = 0
This commit is contained in:
@@ -72,7 +72,7 @@
|
||||
if(chosenlist)
|
||||
chosenlist.Remove(e)
|
||||
|
||||
// Clone of list.Cut()
|
||||
// Clone of list.len = 0
|
||||
/proc/n_listcut(var/list/L, var/start, var/end)
|
||||
if(!istype(L, /list)) return
|
||||
return L.Cut(start, end)
|
||||
|
||||
@@ -20,4 +20,4 @@
|
||||
return S
|
||||
|
||||
Clear()
|
||||
contents.Cut()
|
||||
contents.len = 0
|
||||
Reference in New Issue
Block a user