mirror of
https://github.com/ppy/osu
synced 2024-12-17 04:15:37 +00:00
Use GetLastObjectTime()
for safety
Due to other circumstances this has no real effect, but may as well.
This commit is contained in:
parent
981340debe
commit
ef952bcd65
@ -41,7 +41,7 @@ namespace osu.Game.Screens.Edit
|
||||
foreach (var manualBreak in Beatmap.Breaks.ToList())
|
||||
{
|
||||
if (manualBreak.EndTime <= Beatmap.HitObjects.FirstOrDefault()?.StartTime
|
||||
|| manualBreak.StartTime >= Beatmap.HitObjects.LastOrDefault()?.GetEndTime()
|
||||
|| manualBreak.StartTime >= Beatmap.GetLastObjectTime()
|
||||
|| Beatmap.HitObjects.Any(ho => ho.StartTime <= manualBreak.EndTime && ho.GetEndTime() >= manualBreak.StartTime))
|
||||
{
|
||||
Beatmap.Breaks.Remove(manualBreak);
|
||||
|
Loading…
Reference in New Issue
Block a user