1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 18:23:04 +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); var nextTimingPoint = beatmap.ControlPointInfo.TimingPointAt(time);
// switch to the next timing point if we have reached it. // switch to the next timing point if we have reached it.
if (nextTimingPoint != timingPoint) if (nextTimingPoint.Time > timingPoint.Time)
{ {
beat = 0; beat = 0;
time = nextTimingPoint.Time; time = nextTimingPoint.Time;