Fixes heartbeat sounds playing indefinitely in certain cases

This commit is contained in:
CitadelStationBot
2017-07-06 08:26:23 -05:00
parent b1b4826c0c
commit 21878a77f0
2 changed files with 5 additions and 0 deletions
@@ -19,6 +19,10 @@
/mob/living/carbon/human/death(gibbed)
if(stat == DEAD)
return
stop_sound_channel(CHANNEL_HEARTBEAT)
var/obj/item/organ/heart/H = getorganslot("heart")
if(H)
H.beat = BEAT_NONE
. = ..()