mirror of
https://github.com/ppy/osu.git
synced 2026-06-05 03:45:09 +08:00
Use SingleOrDefault() instead of LastOrDefault()
`LastOrDefault()` is arbitrary, and I hope this doesn't matter for anything, because if it does, then that's utterly *horrifying*.
This commit is contained in:
@@ -128,7 +128,7 @@ namespace osu.Game.Screens.Edit.GameplayTest
|
||||
{
|
||||
var drawableObject = DrawableRuleset.Playfield.HitObjectContainer
|
||||
.AliveObjects
|
||||
.LastOrDefault(it => it.HitObject == hitObject);
|
||||
.SingleOrDefault(it => it.HitObject == hitObject);
|
||||
|
||||
if (drawableObject != null)
|
||||
preventMissOnDrawable(drawableObject);
|
||||
|
||||
Reference in New Issue
Block a user