mirror of https://github.com/ppy/osu
Fix variable hiding
This commit is contained in:
parent
f670e4664d
commit
1086688e0a
|
@ -58,16 +58,16 @@ public void Next()
|
|||
|
||||
private Background createBackground()
|
||||
{
|
||||
Background background;
|
||||
Background newBackground;
|
||||
|
||||
if (user.Value?.IsSupporter ?? false)
|
||||
background = new SkinnedBackground(skin.Value, backgroundName);
|
||||
newBackground = new SkinnedBackground(skin.Value, backgroundName);
|
||||
else
|
||||
background = new Background(backgroundName);
|
||||
newBackground = new Background(backgroundName);
|
||||
|
||||
background.Depth = currentDisplay;
|
||||
newBackground.Depth = currentDisplay;
|
||||
|
||||
return background;
|
||||
return newBackground;
|
||||
}
|
||||
|
||||
private class SkinnedBackground : Background
|
||||
|
|
Loading…
Reference in New Issue