Fixed some errors

This commit is contained in:
Jenny Crowe
2022-03-07 02:41:07 -07:00
parent 34819ed791
commit 2ab3c8b8cc
2 changed files with 7 additions and 0 deletions

View File

@ -109,6 +109,10 @@ namespace RhythmHeavenMania.Util
public static void KillLoop(AudioSource source, float fadeTime)
{
// Safeguard against previously-destroyed sounds.
if (source == null)
return;
source.GetComponent<Sound>().KillLoop(fadeTime);
}
}