Fixes Cable GC Issues (#13793)

This commit is contained in:
Fox McCloud
2020-07-09 18:52:37 -06:00
committed by GitHub
parent 39c98afcde
commit 523b4c681b
+1 -1
View File
@@ -42,7 +42,7 @@ SUBSYSTEM_DEF(machines)
while(currentrun.len)
var/obj/O = currentrun[currentrun.len]
currentrun.len--
if(O)
if(O && !QDELETED(O))
var/datum/powernet/newPN = new() // create a new powernet...
propagate_network(O, newPN)//... and propagate it to the other side of the cable