mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 22:22:55 +08:00
Avoid NRE due to a beatmap loading with no hit objects.
This commit is contained in:
parent
c545a9c242
commit
ccbba8a00b
@ -54,11 +54,14 @@ namespace osu.Game.Screens.Play
|
||||
{
|
||||
base.LoadComplete();
|
||||
|
||||
var playerSettingsOverlay = new PlaybackSettings { Expanded = { Value = false } };
|
||||
HUDOverlay.PlayerSettingsOverlay.Add(playerSettingsOverlay);
|
||||
if (HUDOverlay != null)
|
||||
{
|
||||
var playerSettingsOverlay = new PlaybackSettings { Expanded = { Value = false } };
|
||||
HUDOverlay.PlayerSettingsOverlay.Add(playerSettingsOverlay);
|
||||
|
||||
if (GameplayClockContainer is MasterGameplayClockContainer master)
|
||||
playerSettingsOverlay.UserPlaybackRate.BindTarget = master.UserPlaybackRate;
|
||||
if (GameplayClockContainer is MasterGameplayClockContainer master)
|
||||
playerSettingsOverlay.UserPlaybackRate.BindTarget = master.UserPlaybackRate;
|
||||
}
|
||||
}
|
||||
|
||||
protected override void PrepareReplay()
|
||||
|
Loading…
Reference in New Issue
Block a user