From 311e7b408422ad14bcb0d113d0013ccdf2449d9a Mon Sep 17 00:00:00 2001 From: desktop-maesty/steve Date: Sun, 23 Sep 2018 11:43:55 +1000 Subject: [PATCH] Fix #710 --- Assets/Fungus/Scripts/Components/WriterAudio.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/Fungus/Scripts/Components/WriterAudio.cs b/Assets/Fungus/Scripts/Components/WriterAudio.cs index 6325dda4..95c8710d 100644 --- a/Assets/Fungus/Scripts/Components/WriterAudio.cs +++ b/Assets/Fungus/Scripts/Components/WriterAudio.cs @@ -228,7 +228,7 @@ namespace Fungus { if (nextBeepTime < Time.realtimeSinceStartup) { - targetAudioSource.clip = beepSounds[Random.Range(0, beepSounds.Count - 1)]; + targetAudioSource.clip = beepSounds[Random.Range(0, beepSounds.Count)]; if (targetAudioSource.clip != null) {