From 5eed07db57fd83da7d92b5a7f651b4e7c879b920 Mon Sep 17 00:00:00 2001 From: Huo Yaoyuan Date: Sun, 6 Nov 2016 00:13:45 +0800 Subject: [PATCH] Update access of WorkingBeatmap. --- osu.Game/Overlays/MusicController.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/osu.Game/Overlays/MusicController.cs b/osu.Game/Overlays/MusicController.cs index ff8872cc19..ab6836fd0a 100644 --- a/osu.Game/Overlays/MusicController.cs +++ b/osu.Game/Overlays/MusicController.cs @@ -251,10 +251,7 @@ namespace osu.Game.Overlays title.Text = metadata.TitleUnicode ?? metadata.Title; artist.Text = metadata.ArtistUnicode ?? metadata.Artist; - Sprite newBackground; - - - newBackground = getScaledSprite(TextureLoader.FromStream(beatmap.Reader.ReadFile(metadata.BackgroundFile))); + Sprite newBackground = getScaledSprite(beatmap.Background); Add(newBackground);