From c5aba9f24749b5fc4a6039a11b6d40adbf090cae Mon Sep 17 00:00:00 2001 From: Aergwyn Date: Sat, 23 Dec 2017 12:32:21 +0100 Subject: [PATCH 1/2] add Samples to RepeatPoint construction --- osu.Game.Rulesets.Osu/Objects/Slider.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/osu.Game.Rulesets.Osu/Objects/Slider.cs b/osu.Game.Rulesets.Osu/Objects/Slider.cs index 24398c2235..e1d997790f 100644 --- a/osu.Game.Rulesets.Osu/Objects/Slider.cs +++ b/osu.Game.Rulesets.Osu/Objects/Slider.cs @@ -170,6 +170,7 @@ namespace osu.Game.Rulesets.Osu.Objects StackHeight = StackHeight, Scale = Scale, ComboColour = ComboColour, + Samples = new SampleInfoList(RepeatSamples.ElementAt(repeat)) }); } } From 47c75d01ce5057b5005819a273577c6de4ea2360 Mon Sep 17 00:00:00 2001 From: Aergwyn Date: Sat, 23 Dec 2017 13:30:44 +0100 Subject: [PATCH 2/2] access list with index instead of using LINQ --- osu.Game.Rulesets.Osu/Objects/Slider.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osu.Game.Rulesets.Osu/Objects/Slider.cs b/osu.Game.Rulesets.Osu/Objects/Slider.cs index e1d997790f..4f5a44e61d 100644 --- a/osu.Game.Rulesets.Osu/Objects/Slider.cs +++ b/osu.Game.Rulesets.Osu/Objects/Slider.cs @@ -170,7 +170,7 @@ namespace osu.Game.Rulesets.Osu.Objects StackHeight = StackHeight, Scale = Scale, ComboColour = ComboColour, - Samples = new SampleInfoList(RepeatSamples.ElementAt(repeat)) + Samples = new SampleInfoList(RepeatSamples[repeat]) }); } }