mirror of
https://github.com/ppy/osu.git
synced 2025-01-06 06:13:04 +08:00
Should be FirstOrDefault for hit objects occuriung before the first control point.
This commit is contained in:
parent
e5d985838f
commit
1964bc72e5
@ -247,7 +247,7 @@ namespace osu.Game.Rulesets.UI
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="time">The time to find the active <see cref="SpeedAdjustmentContainer"/> at.</param>
|
/// <param name="time">The time to find the active <see cref="SpeedAdjustmentContainer"/> at.</param>
|
||||||
/// <returns>The <see cref="SpeedAdjustmentContainer"/> active at <paramref name="time"/>. Null if there are no speed adjustments.</returns>
|
/// <returns>The <see cref="SpeedAdjustmentContainer"/> active at <paramref name="time"/>. Null if there are no speed adjustments.</returns>
|
||||||
private SpeedAdjustmentContainer adjustmentContainerAt(double time) => speedAdjustments.First(c => c.CanContain(time)) ?? defaultSpeedAdjustment;
|
private SpeedAdjustmentContainer adjustmentContainerAt(double time) => speedAdjustments.FirstOrDefault(c => c.CanContain(time)) ?? defaultSpeedAdjustment;
|
||||||
|
|
||||||
private class SortedContainer : Container<SpeedAdjustmentContainer>
|
private class SortedContainer : Container<SpeedAdjustmentContainer>
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user