Remove null channels from SkinnableSound playable channels

This commit is contained in:
Dean Herbert 2018-02-25 17:14:06 +09:00
parent c701b8eae5
commit ab9aed351f
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ protected override void SkinChanged(Skin skin, bool allowFallback)
if (ch == null && allowFallback)
ch = loadChannel(s, audio.Sample.Get);
return ch;
}).ToArray();
}).Where(c => c != null).ToArray();
}
private SampleChannel loadChannel(SampleInfo info, Func<string, SampleChannel> getSampleFunction)