mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 18:32:03 +00:00
Loop through garbage queue to remove nulls
This commit is contained in:
@@ -56,7 +56,14 @@ var/global/list/uncollectable_vars=list(
|
|||||||
|
|
||||||
proc/Pop()
|
proc/Pop()
|
||||||
var/atom/movable/A = queue[1]
|
var/atom/movable/A = queue[1]
|
||||||
if(!A) return
|
if(!A)
|
||||||
|
if(isnull(A))
|
||||||
|
var/loopcheck = 0
|
||||||
|
while(queue.Remove(null))
|
||||||
|
loopcheck++
|
||||||
|
if(loopcheck > 50)
|
||||||
|
break
|
||||||
|
return
|
||||||
if(del_everything)
|
if(del_everything)
|
||||||
del(A)
|
del(A)
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user