Merge pull request #9825 from Heroman3003/voxanity

Adds a sanity check for speech sound logic
This commit is contained in:
Novacat
2021-03-01 13:08:39 -05:00
committed by GitHub
+1 -1
View File
@@ -184,7 +184,7 @@
/mob/living/carbon/human/handle_speech_sound()
var/list/returns[2]
if(species.speech_sounds && prob(species.speech_chance))
if(species.speech_sounds && species.speech_sounds.len && prob(species.speech_chance)) //VOREStation Edit: Sanity Check
returns[1] = sound(pick(species.speech_sounds))
returns[2] = 50
return returns