1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 13:37:25 +08:00

Fix possible null reference.

This commit is contained in:
ekrctb 2020-11-30 14:24:50 +09:00
parent 4228977c86
commit 8528b2687f

View File

@ -49,7 +49,7 @@ namespace osu.Game.Rulesets.Catch.Objects.Drawables.Pieces
protected override void Update()
{
if (borderPiece != null && drawableHitObject.HitObject != null)
if (borderPiece != null && drawableHitObject?.HitObject != null)
borderPiece.Alpha = (float)Math.Clamp((drawableHitObject.HitObject.StartTime - Time.Current) / 500, 0, 1);
}