Fix variable hiding

This commit is contained in:
David Zhao 2019-03-20 15:13:59 +09:00
parent f670e4664d
commit 1086688e0a
1 changed files with 5 additions and 5 deletions

View File

@ -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