mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 10:21:11 +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()
|
||||
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)
|
||||
del(A)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user