remove misleading dead assignments on saving, before using vars as out params

This commit is contained in:
Chris Forbes
2011-09-24 20:32:57 +12:00
parent a1fc76acc3
commit 657e8ad250
2 changed files with 2 additions and 2 deletions

View File

@@ -135,7 +135,7 @@ namespace OpenRA.Mods.Cnc.Widgets.Logic
panel.GetWidget<ButtonWidget>("BACK_BUTTON").OnClick = () =>
{
playerSettings.Name = nameTextfield.Text;
int x = graphicsSettings.WindowedSize.X, y = graphicsSettings.WindowedSize.Y;
int x, y;
int.TryParse(windowWidth.Text, out x);
int.TryParse(windowHeight.Text, out y);
graphicsSettings.WindowedSize = new int2(x,y);