mirror of
https://github.com/ppy/osu.git
synced 2026-05-20 22:21:10 +08:00
Remove null channels from SkinnableSound playable channels
This commit is contained in:
@@ -39,7 +39,7 @@ namespace osu.Game.Skinning
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user