1
0
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:
Bartłomiej Dach
2025-09-02 08:05:37 +02:00
Unverified
parent b0dcd06b38
commit 903d91b697
@@ -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);