mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 06:52:56 +08:00
Fix variable hiding
This commit is contained in:
parent
f670e4664d
commit
1086688e0a
@ -58,16 +58,16 @@ namespace osu.Game.Screens.Backgrounds
|
||||
|
||||
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
Block a user