Loop through garbage queue to remove nulls

This commit is contained in:
d3athrow
2014-03-05 01:26:11 -06:00
parent 44bf395cda
commit ef264cb65d

View File

@@ -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