1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-06 06:57:39 +08:00

Fix possible null and adjust timeline width

This commit is contained in:
EVAST9919 2017-11-20 09:29:26 +03:00
parent 9fe7ebc0ce
commit ecc2877be6

View File

@ -93,8 +93,7 @@ namespace osu.Game.Screens.Edit
ColumnDimensions = new[]
{
new Dimension(),
new Dimension(GridSizeMode.Relative, 0.67f),
new Dimension(),
new Dimension(GridSizeMode.Relative, 0.65f),
},
Content = new[]
{
@ -173,8 +172,11 @@ namespace osu.Game.Screens.Edit
protected override bool OnExiting(Screen next)
{
Background.FadeColour(Color4.White, 500);
Beatmap.Value.Track.Tempo.Value = 1;
Beatmap.Value.Track?.Start();
if (Beatmap.Value.Track != null)
{
Beatmap.Value.Track.Tempo.Value = 1;
Beatmap.Value.Track.Start();
}
return base.OnExiting(next);
}
}