Fixes bug with IWILLGC qdel hint

This came up in testing, this doesn't set the object in such a way that qdeleted() returns true.
This commit is contained in:
MrStonedOne
2017-01-16 12:56:48 -08:00
parent 3f75fdb42d
commit 4c55dbe2a6
+3 -1
View File
@@ -170,7 +170,9 @@ var/datum/subsystem/garbage_collector/SSgarbage
switch(hint)
if (QDEL_HINT_QUEUE) //qdel should queue the object for deletion.
SSgarbage.QueueForQueuing(D)
if (QDEL_HINT_LETMELIVE, QDEL_HINT_IWILLGC) //qdel should let the object live after calling destory.
if (QDEL_HINT_IWILLGC)
return
if (QDEL_HINT_LETMELIVE) //qdel should let the object live after calling destory.
if(!force)
D.gc_destroyed = null //clear the gc variable (important!)
return