Runtime fixes (#2017)

changes:

Added more QDELETED checks to organ processing.
Fixed some misc runtimes in lighting & sparks.
This commit is contained in:
Lohikar
2017-03-30 22:06:24 +03:00
committed by skull132
parent 2d26596320
commit e64074c5a7
4 changed files with 12 additions and 9 deletions
@@ -25,6 +25,11 @@
//processing internal organs is pretty cheap, do that first.
for(var/obj/item/organ/I in internal_organs)
if (QDELETED(I))
log_debug("Organ [DEBUG_REF(src)] was not properly removed from its parent!")
internal_organs -= I
continue
I.process()
handle_stance()