mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 08:27:49 +08:00
Add check for empty NodeSamples
This commit is contained in:
parent
2c65fe197a
commit
e8984333f6
@ -398,7 +398,7 @@ namespace osu.Game.Beatmaps.Formats
|
|||||||
{
|
{
|
||||||
foreach (List<HitSampleInfo> node in hr.NodeSamples)
|
foreach (List<HitSampleInfo> node in hr.NodeSamples)
|
||||||
{
|
{
|
||||||
if (!customSoundBanks.Contains(node[0].Bank)
|
if (node.Count > 0 && !customSoundBanks.Contains(node[0].Bank)
|
||||||
&& node[0].Bank != "none" && node[0].Bank != "normal" && node[0].Bank != "soft" && node[0].Bank != "drum")
|
&& node[0].Bank != "none" && node[0].Bank != "normal" && node[0].Bank != "soft" && node[0].Bank != "drum")
|
||||||
{
|
{
|
||||||
customSoundBanks.Add(node[0].Bank);
|
customSoundBanks.Add(node[0].Bank);
|
||||||
|
Loading…
Reference in New Issue
Block a user