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

Change createSampleC ontrolPointFor fallback from -1 to 1

This commit is contained in:
kstefanowicz 2024-08-19 08:57:27 -04:00
parent 8299a0b9c8
commit 730f198c45

View File

@ -323,7 +323,7 @@ namespace osu.Game.Beatmaps.Formats
int volume = samples.Max(o => o.Volume);
int customIndex = samples.Any(o => o is ConvertHitObjectParser.LegacyHitSampleInfo)
? samples.OfType<ConvertHitObjectParser.LegacyHitSampleInfo>().Max(o => o.CustomSampleBank)
: -1;
: 1;
return new LegacyBeatmapDecoder.LegacySampleControlPoint { Time = time, SampleVolume = volume, CustomSampleBank = customIndex };
}