mirror of
https://github.com/ppy/osu.git
synced 2025-01-27 18:32:56 +08:00
Fix possible null reference.
This commit is contained in:
parent
4228977c86
commit
8528b2687f
@ -49,7 +49,7 @@ namespace osu.Game.Rulesets.Catch.Objects.Drawables.Pieces
|
|||||||
|
|
||||||
protected override void Update()
|
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);
|
borderPiece.Alpha = (float)Math.Clamp((drawableHitObject.HitObject.StartTime - Time.Current) / 500, 0, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user