diff --git a/code/controllers/subsystems/mobs.dm b/code/controllers/subsystems/mobs.dm index 4f7d524a8f..8fb2bf3f89 100644 --- a/code/controllers/subsystems/mobs.dm +++ b/code/controllers/subsystems/mobs.dm @@ -42,6 +42,7 @@ SUBSYSTEM_DEF(mobs) if(!M || QDELETED(M)) mob_list -= M + continue else if(M.low_priority && !(process_z[get_z(M)])) slept_mobs++ continue diff --git a/code/modules/mob/living/carbon/human/death.dm b/code/modules/mob/living/carbon/human/death.dm index 43096f2753..dd816d1e8f 100644 --- a/code/modules/mob/living/carbon/human/death.dm +++ b/code/modules/mob/living/carbon/human/death.dm @@ -12,7 +12,7 @@ for(var/obj/item/organ/I in internal_organs) I.removed() - if(istype(loc,/turf)) + if(isturf(I?.loc)) // Some organs qdel themselves or other things when removed I.throw_at(get_edge_target_turf(src,pick(alldirs)),rand(1,3),30) for(var/obj/item/organ/external/E in src.organs)