From d1dc3456d101fde973a84ac800c89601ece949ad Mon Sep 17 00:00:00 2001 From: smoogipoo Date: Thu, 12 Dec 2019 18:42:48 +0900 Subject: [PATCH] Fix incorrect repeat point count --- 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 bfbc3babed..23054838f8 100644 --- a/osu.Game/Beatmaps/Formats/LegacyBeatmapEncoder.cs +++ b/osu.Game/Beatmaps/Formats/LegacyBeatmapEncoder.cs @@ -264,7 +264,7 @@ namespace osu.Game.Beatmaps.Formats writer.Write(i != curveData.Path.ControlPoints.Count - 1 ? "|" : ","); } - writer.Write(FormattableString.Invariant($"{curveData.RepeatCount - 1},")); + writer.Write(FormattableString.Invariant($"{curveData.RepeatCount + 1},")); writer.Write(FormattableString.Invariant($"{curveData.Path.Distance},")); for (int i = 0; i < curveData.NodeSamples.Count; i++)