From 95c34c30baefa6f417dea34f8d26b813b53556d4 Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Tue, 24 Aug 2010 22:48:12 +1200 Subject: [PATCH] Don't die after render if the world doesn't exist --- OpenRA.Game/Game.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/OpenRA.Game/Game.cs b/OpenRA.Game/Game.cs index a2d3955668..250fe78b67 100644 --- a/OpenRA.Game/Game.cs +++ b/OpenRA.Game/Game.cs @@ -205,6 +205,9 @@ namespace OpenRA public static void DispatchMouseInput(MouseInputEvent ev, MouseEventArgs e, Modifiers modifierKeys) { + if (world == null) + return; + int sync = world.SyncHash(); var initialWorld = world;