From f9230a72f2b7d31c4f18a9b904ca7638c67eab65 Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Thu, 26 Jul 2018 10:49:05 +0100 Subject: [PATCH] Fix NRE in mods that don't immediately show the main menu. --- OpenRA.Game/Game.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Game/Game.cs b/OpenRA.Game/Game.cs index 47a56f5e57..abd8c1b100 100644 --- a/OpenRA.Game/Game.cs +++ b/OpenRA.Game/Game.cs @@ -59,7 +59,7 @@ namespace OpenRA static Task discoverNat; static bool takeScreenshot = false; - public static event Action OnShellmapLoaded; + public static event Action OnShellmapLoaded = () => { }; public static OrderManager JoinServer(string host, int port, string password, bool recordReplay = true) {