Fix some test regressions

This commit is contained in:
Dean Herbert
2017-07-19 13:58:10 +09:00
parent 8e8767cd37
commit 21d07428fe
2 changed files with 3 additions and 1 deletions

View File

@ -151,6 +151,8 @@ namespace osu.Desktop.VisualTests.Tests
private int calculateBeatCount(TimingControlPoint current)
{
if (timingPoints.Count == 0) return 0;
if (timingPoints[timingPoints.Count - 1] == current)
return (int)Math.Ceiling((Beatmap.Value.Track.Length - current.Time) / current.BeatLength);