diff --git a/MrBigsock/Assets/Code/Character.cs b/MrBigsock/Assets/Code/Character.cs index 5e263ce6a53557b1e19921c2b2b7cbc0a062afa6..a355487f889102c61792b7021287da7fe8c6932e 100644 --- a/MrBigsock/Assets/Code/Character.cs +++ b/MrBigsock/Assets/Code/Character.cs @@ -217,7 +217,7 @@ namespace BigSock { // Trigger the event for taking damage. OnTakeDamage?.Invoke(this, attack.Actor, attack); - if (TakeDamageAudio != null){ + if(TakeDamageAudio != null && source?.Count > 0 && source[0] != null) { source[0].clip = TakeDamageAudio; source[0].Play(); }