From 279413f05bbdbabcacc27177265a63da531bdb40 Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Sat, 30 Apr 2011 11:14:25 +1200 Subject: [PATCH] dont crash on disconnect from lobby --- OpenRA.Game/Game.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OpenRA.Game/Game.cs b/OpenRA.Game/Game.cs index bbdf8cb506..80f61b79c8 100755 --- a/OpenRA.Game/Game.cs +++ b/OpenRA.Game/Game.cs @@ -326,7 +326,8 @@ namespace OpenRA public static void Disconnect() { - orderManager.world.traitDict.PrintReport(); + if (orderManager.world != null) + orderManager.world.traitDict.PrintReport(); if (IsHost && server != null) server.Shutdown();