1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 19:22:54 +08:00

Fix variable hiding

This commit is contained in:
David Zhao 2019-03-20 15:13:59 +09:00
parent f670e4664d
commit 1086688e0a

View File

@ -58,16 +58,16 @@ namespace osu.Game.Screens.Backgrounds
private Background createBackground() private Background createBackground()
{ {
Background background; Background newBackground;
if (user.Value?.IsSupporter ?? false) if (user.Value?.IsSupporter ?? false)
background = new SkinnedBackground(skin.Value, backgroundName); newBackground = new SkinnedBackground(skin.Value, backgroundName);
else else
background = new Background(backgroundName); newBackground = new Background(backgroundName);
background.Depth = currentDisplay; newBackground.Depth = currentDisplay;
return background; return newBackground;
} }
private class SkinnedBackground : Background private class SkinnedBackground : Background