1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 10:33:30 +08:00

Fix logic results in infinite loop on default timing point return

This commit is contained in:
Dean Herbert 2020-05-20 14:55:36 +09:00
parent 4f83bb679b
commit d31a59b074

View File

@ -126,7 +126,7 @@ namespace osu.Game.Rulesets.Mania.Edit
var nextTimingPoint = beatmap.ControlPointInfo.TimingPointAt(time);
// switch to the next timing point if we have reached it.
if (nextTimingPoint != timingPoint)
if (nextTimingPoint.Time > timingPoint.Time)
{
beat = 0;
time = nextTimingPoint.Time;