1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-21 23:10:51 +08:00

Update missed conditional

This commit is contained in:
Dean Herbert
2021-08-25 17:00:32 +09:00
Unverified
parent ccfff50c6f
commit fd78d0440b
@@ -66,7 +66,7 @@ namespace osu.Game.Rulesets.UI
protected HitObject GetMostValidObject()
{
// The most optimal lookup case we have is when an object is alive. There are usually very few alive objects so there's no drawbacks in attempting this lookup each time.
var hitObject = hitObjectContainer.AliveObjects.FirstOrDefault(h => h.Result?.IsHit != true)?.HitObject;
var hitObject = hitObjectContainer.AliveObjects.FirstOrDefault(h => h.Result?.HasResult != true)?.HitObject;
// In the case a next object isn't available in drawable form, we need to do a somewhat expensive traversal to get a valid sound to play.
if (hitObject == null)