diff --git a/OpenRA.Mods.RA/Widgets/Logic/CreateServerMenuLogic.cs b/OpenRA.Mods.RA/Widgets/Logic/CreateServerMenuLogic.cs index 58216d5d23..4c18f287b1 100644 --- a/OpenRA.Mods.RA/Widgets/Logic/CreateServerMenuLogic.cs +++ b/OpenRA.Mods.RA/Widgets/Logic/CreateServerMenuLogic.cs @@ -22,8 +22,8 @@ namespace OpenRA.Mods.RA.Widgets.Logic { var settings = Game.Settings; - cs.GetWidget("BUTTON_CANCEL").OnMouseUp = mi => Widget.CloseWindow(); - cs.GetWidget("BUTTON_START").OnMouseUp = mi => + cs.GetWidget("BUTTON_CANCEL").OnClick = () => Widget.CloseWindow(); + cs.GetWidget("BUTTON_START").OnClick = () => { settings.Server.Name = cs.GetWidget("GAME_TITLE").Text; settings.Server.ListenPort = int.Parse(cs.GetWidget("LISTEN_PORT").Text);