gcDestroyed fixes

This commit is contained in:
Markolie
2015-09-21 02:33:53 +02:00
parent c5c64413a1
commit a39c3ec9ba
3 changed files with 5 additions and 4 deletions
@@ -175,7 +175,7 @@ var/global/list/ghdels_profiled = list()
if(garbageCollector)
while(garbageCollector.queue.len)
var/datum/o = locate(garbageCollector.queue[1])
if(istype(o) && o.gcDestroyed)
if(istype(o) && !isnull(o.gcDestroyed))
del(o)
garbageCollector.dels_count++
garbageCollector.queue.Cut(1, 2)