1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 09:07:52 +08:00

Add check for empty NodeSamples

This commit is contained in:
kstefanowicz 2024-08-24 19:22:07 -04:00
parent 2c65fe197a
commit e8984333f6

View File

@ -398,7 +398,7 @@ namespace osu.Game.Beatmaps.Formats
{
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")
{
customSoundBanks.Add(node[0].Bank);