From e9094bac51344fa4db1b7b5ff1397062ba8a85e2 Mon Sep 17 00:00:00 2001 From: EVAST9919 Date: Sun, 30 Apr 2017 17:05:00 +0300 Subject: [PATCH] Added suggested changes --- osu.Game/Screens/Play/PlayerLoader.cs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/osu.Game/Screens/Play/PlayerLoader.cs b/osu.Game/Screens/Play/PlayerLoader.cs index 7eb189a007..9199407246 100644 --- a/osu.Game/Screens/Play/PlayerLoader.cs +++ b/osu.Game/Screens/Play/PlayerLoader.cs @@ -179,19 +179,18 @@ namespace osu.Game.Screens.Play private readonly SpriteText title; private readonly SpriteText artist; - private readonly WorkingBeatmap beatmap; + private readonly BeatmapMetadata metadata; [BackgroundDependencyLoader] private void load(LocalisationEngine localisation) { - title.Current = localisation.GetUnicodePreference(beatmap.BeatmapSetInfo.Metadata.TitleUnicode, beatmap.BeatmapSetInfo.Metadata.Title); - artist.Current = localisation.GetUnicodePreference(beatmap.BeatmapSetInfo.Metadata.ArtistUnicode, beatmap.BeatmapSetInfo.Metadata.Artist); + title.Current = localisation.GetUnicodePreference(metadata.TitleUnicode, metadata.Title); + artist.Current = localisation.GetUnicodePreference(metadata.ArtistUnicode, metadata.Artist); } public BeatmapMetadataDisplay(WorkingBeatmap beatmap) { - this.beatmap = beatmap; - var metadata = beatmap?.BeatmapInfo?.Metadata ?? new BeatmapMetadata(); + metadata = beatmap?.BeatmapInfo?.Metadata ?? new BeatmapMetadata(); AutoSizeAxes = Axes.Both; Children = new Drawable[]