1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 16:25:32 +08:00

Merge pull request #1043 from peppy/fix-songprogress-endtime

Fix incorrect end time calculation in SongProgressGraph
This commit is contained in:
Thomas Müller 2017-07-21 10:22:01 +02:00 committed by GitHub
commit c9cdb9c865

View File

@ -25,7 +25,7 @@ namespace osu.Game.Screens.Play
return;
var firstHit = objects.First().StartTime;
var lastHit = (objects.Last() as IHasEndTime)?.EndTime ?? 0;
var lastHit = objects.Max(o => (o as IHasEndTime)?.EndTime ?? o.StartTime);
if (lastHit == 0)
lastHit = objects.Last().StartTime;