Resharper is too smart.

This commit is contained in:
smoogipooo
2017-05-11 22:16:50 +09:00
parent f5399f7f2b
commit 0597a95db0
2 changed files with 9 additions and 8 deletions

View File

@ -36,7 +36,11 @@ namespace osu.Game.Rulesets.Mania.UI
var timingSections = new List<TimingSection>();
// Construct all the relevant timing sections
ControlPoint lastTimingChange = null;
ControlPoint lastTimingChange = Beatmap.TimingInfo.ControlPoints.FirstOrDefault(t => t.TimingChange);
if (lastTimingChange == null)
throw new Exception("The Beatmap contains no timing points!");
foreach (ControlPoint point in Beatmap.TimingInfo.ControlPoints)
{
if (point.TimingChange)
@ -92,10 +96,6 @@ namespace osu.Game.Rulesets.Mania.UI
if (note != null)
return new DrawableNote(note);
var holdNote = h as HoldNote;
if (holdNote != null)
return new DrawableHoldNote(holdNote);
return null;
}