diff --git a/OpenRA.Game/Game.cs b/OpenRA.Game/Game.cs index 6f67f35fac..41c50e293c 100644 --- a/OpenRA.Game/Game.cs +++ b/OpenRA.Game/Game.cs @@ -279,9 +279,9 @@ namespace OpenRA JoinLocal(); StartGame(modData.Manifest.ShellmapUid); - Game.BeforeGameStart = () => Widget.OpenWindow("INGAME_ROOT"); + Game.BeforeGameStart += () => Widget.OpenWindow("INGAME_ROOT"); - Game.ConnectionStateChanged = () => + Game.ConnectionStateChanged += () => { Widget.CloseWindow(); switch( Game.orderManager.Connection.ConnectionState )