mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 18:33:20 +08:00
Simplify null check
This commit is contained in:
parent
c578509a20
commit
10dbd68c1e
@ -62,9 +62,7 @@ namespace osu.Game.Screens.Edit.Components.Timelines.Summary.Parts
|
||||
{
|
||||
base.Update();
|
||||
|
||||
if (Beatmap.Value == null)
|
||||
return;
|
||||
marker.X = (float)Beatmap.Value.Track.CurrentTime;
|
||||
marker.X = (float)(Beatmap.Value?.Track.CurrentTime ?? 0);
|
||||
}
|
||||
|
||||
private class MarkerVisualisation : CompositeDrawable
|
||||
|
Loading…
Reference in New Issue
Block a user