From ec04ceaece3c2a3bec47164b390bb4f2bf7378af Mon Sep 17 00:00:00 2001 From: smoogipooo Date: Sat, 22 Apr 2017 20:53:55 +0900 Subject: [PATCH] Fix off-by-one on repeatCount. --- osu.Game/Rulesets/Objects/Legacy/HitObjectParser.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/osu.Game/Rulesets/Objects/Legacy/HitObjectParser.cs b/osu.Game/Rulesets/Objects/Legacy/HitObjectParser.cs index 5bacb41b83..4caaf24da5 100644 --- a/osu.Game/Rulesets/Objects/Legacy/HitObjectParser.cs +++ b/osu.Game/Rulesets/Objects/Legacy/HitObjectParser.cs @@ -80,7 +80,8 @@ namespace osu.Game.Rulesets.Objects.Legacy readCustomSampleBanks(split[10], bankInfo); // One node for each repeat + the start and end nodes - int nodes = repeatCount + 2; + // Note that the first length of the slider is considered a repeat, but there are no actual repeats happening + int nodes = Math.Max(0, repeatCount - 1) + 2; // Populate node sample bank infos with the default hit object sample bank var nodeBankInfos = new List();