From 6d7f70d0ea01ec4c8cc0e60092a570730e5bed44 Mon Sep 17 00:00:00 2001 From: MrTheMake Date: Sun, 21 May 2017 18:00:31 +0200 Subject: [PATCH] Fix CI warnings --- osu.Game/Screens/Select/PlaySongSelect.cs | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/osu.Game/Screens/Select/PlaySongSelect.cs b/osu.Game/Screens/Select/PlaySongSelect.cs index a3fe6e3fe7..760de63b0e 100644 --- a/osu.Game/Screens/Select/PlaySongSelect.cs +++ b/osu.Game/Screens/Select/PlaySongSelect.cs @@ -57,9 +57,19 @@ namespace osu.Game.Screens.Select { beatmap?.Mods.BindTo(modSelect.SelectedMods); - if (Beatmap != null && Beatmap.Track != null) Beatmap.Track.Looping = false; + if (Beatmap != null) + { + if (Beatmap.Track != null) + Beatmap.Track.Looping = false; + } + beatmapDetails.Beatmap = beatmap; - if(beatmap != null && beatmap.Track != null) beatmap.Track.Looping = true; + + if (beatmap != null) + { + if (beatmap.Track != null) + beatmap.Track.Looping = false; + } base.OnBeatmapChanged(beatmap); } @@ -90,7 +100,10 @@ namespace osu.Game.Screens.Select if (base.OnExiting(next)) return true; - if(Beatmap != null && Beatmap.Track != null) Beatmap.Track.Looping = false; + if (Beatmap != null) { + if(Beatmap.Track != null) + Beatmap.Track.Looping = false; + } return false; }