diff --git a/code/game/objects/structures/morgue.dm b/code/game/objects/structures/morgue.dm index 97687c2fa1f..cd8c190569e 100644 --- a/code/game/objects/structures/morgue.dm +++ b/code/game/objects/structures/morgue.dm @@ -180,7 +180,7 @@ var/global/list/crematoriums = new/list() update_icon() for(var/mob/living/M in contents) - if (M.stat!=2) + if (M.stat != DEAD) M.emote("scream") if(user) user.attack_log +="\[[time_stamp()]\] Cremated [M]/[M.ckey]" @@ -188,8 +188,9 @@ var/global/list/crematoriums = new/list() else log_attack("\[[time_stamp()]\] UNKNOWN cremated [M]/[M.ckey]") M.death(1) - M.ghostize() - qdel(M) + if(M) //some animals get automatically deleted on death. + M.ghostize() + qdel(M) for(var/obj/O in contents) //obj instead of obj/item so that bodybags and ashes get destroyed. We dont want tons and tons of ash piling up if(O != connected) //Creamtorium does not burn hot enough to destroy the tray