mirror of
https://github.com/ppy/osu
synced 2024-12-21 06:16:00 +00:00
Change early return to also find the earliest nested object
This commit is contained in:
parent
2fdf1fd876
commit
19d5293ad1
@ -89,9 +89,9 @@ namespace osu.Game.Rulesets.UI
|
||||
.Where(e => e.Result?.HasResult != true).MinBy(e => e.HitObject.StartTime);
|
||||
|
||||
if (fallbackObject != null)
|
||||
return fallbackObject.HitObject;
|
||||
return getEarliestNestedObject(fallbackObject.HitObject);
|
||||
|
||||
// In the case there are no unjudged objects, the last hit object should be used instead.
|
||||
// In the case there are no non-judged objects, the last hit object should be used instead.
|
||||
fallbackObject ??= hitObjectContainer.Entries.LastOrDefault();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user