mirror of
https://github.com/ppy/osu
synced 2024-12-17 04:15:37 +00:00
Merge pull request #2118 from peppy/fix-null-channels
Remove null channels from SkinnableSound playable channels
This commit is contained in:
commit
dbb1d2b4aa
@ -39,7 +39,7 @@ namespace osu.Game.Skinning
|
|||||||
if (ch == null && allowFallback)
|
if (ch == null && allowFallback)
|
||||||
ch = loadChannel(s, audio.Sample.Get);
|
ch = loadChannel(s, audio.Sample.Get);
|
||||||
return ch;
|
return ch;
|
||||||
}).ToArray();
|
}).Where(c => c != null).ToArray();
|
||||||
}
|
}
|
||||||
|
|
||||||
private SampleChannel loadChannel(SampleInfo info, Func<string, SampleChannel> getSampleFunction)
|
private SampleChannel loadChannel(SampleInfo info, Func<string, SampleChannel> getSampleFunction)
|
||||||
|
Loading…
Reference in New Issue
Block a user