From dd4a64ea6a05310863a2108dac6581d3bba64576 Mon Sep 17 00:00:00 2001 From: Crazy Lemon Date: Tue, 14 Feb 2017 22:49:41 -0800 Subject: [PATCH] Uses evil memetainer powers Pre-emptively prevents empty list runtimes --- code/modules/mob/living/carbon/human/emote.dm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/code/modules/mob/living/carbon/human/emote.dm b/code/modules/mob/living/carbon/human/emote.dm index c4ab88a8b45..0c33f21056c 100644 --- a/code/modules/mob/living/carbon/human/emote.dm +++ b/code/modules/mob/living/carbon/human/emote.dm @@ -394,9 +394,11 @@ message = "[src] coughs!" m_type = 2 if(gender == FEMALE) - playsound(src, pick(species.female_cough_sounds), 120) + if(species.female_cough_sounds) + playsound(src, pick(species.female_cough_sounds), 120) else - playsound(src, pick(species.male_cough_sounds), 120) + if(species.male_cough_sounds) + playsound(src, pick(species.male_cough_sounds), 120) else message = "[src] makes a strong noise." m_type = 2