From 730f198c45cac265f54715833f9ebc2998bf1d3a Mon Sep 17 00:00:00 2001 From: kstefanowicz Date: Mon, 19 Aug 2024 08:57:27 -0400 Subject: [PATCH] Change createSampleC ontrolPointFor fallback from -1 to 1 --- osu.Game/Beatmaps/Formats/LegacyBeatmapEncoder.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osu.Game/Beatmaps/Formats/LegacyBeatmapEncoder.cs b/osu.Game/Beatmaps/Formats/LegacyBeatmapEncoder.cs index c41f76f4d6..3b0bfe613d 100644 --- a/osu.Game/Beatmaps/Formats/LegacyBeatmapEncoder.cs +++ b/osu.Game/Beatmaps/Formats/LegacyBeatmapEncoder.cs @@ -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().Max(o => o.CustomSampleBank) - : -1; + : 1; return new LegacyBeatmapDecoder.LegacySampleControlPoint { Time = time, SampleVolume = volume, CustomSampleBank = customIndex }; }