Remove unnecessary beatmap storage

This commit is contained in:
Dean Herbert 2019-10-08 12:04:13 +09:00
parent 449e53ee6d
commit a0bb193342
1 changed files with 1 additions and 3 deletions

View File

@ -53,8 +53,6 @@ public abstract class IntroScreen : StartupScreen
private LeasedBindable<WorkingBeatmap> beatmap;
public new Bindable<WorkingBeatmap> Beatmap => beatmap;
protected override BackgroundScreen CreateBackground() => new BackgroundScreenBlack();
protected void StartTrack()
@ -68,7 +66,7 @@ protected void StartTrack()
private void load(OsuConfigManager config, SkinManager skinManager, BeatmapManager beatmaps, Framework.Game game)
{
// prevent user from changing beatmap while the intro is still runnning.
beatmap = base.Beatmap.BeginLease(false);
beatmap = Beatmap.BeginLease(false);
MenuVoice = config.GetBindable<bool>(OsuSetting.MenuVoice);
MenuMusic = config.GetBindable<bool>(OsuSetting.MenuMusic);