Skip to content

Commit d339e18

Browse files
committed
fix: null ref in audio source
1 parent cd288d9 commit d339e18

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Assets/JCSUnity/Scripts/Effects/JCS_FadeSound.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,9 @@ public bool IsReachTargetVolume()
182182
/// </summary>
183183
private void DoFadeSound()
184184
{
185+
if (mAudioSource == null)
186+
return;
187+
185188
switch (mType)
186189
{
187190
case JCS_FadeType.OUT:

0 commit comments

Comments
 (0)