mirror of
https://github.com/ppy/osu
synced 2024-12-15 11:25:29 +00: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();
|
base.Update();
|
||||||
|
|
||||||
if (Beatmap.Value == null)
|
marker.X = (float)(Beatmap.Value?.Track.CurrentTime ?? 0);
|
||||||
return;
|
|
||||||
marker.X = (float)Beatmap.Value.Track.CurrentTime;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private class MarkerVisualisation : CompositeDrawable
|
private class MarkerVisualisation : CompositeDrawable
|
||||||
|
Loading…
Reference in New Issue
Block a user