dont crash on disconnect from lobby

This commit is contained in:
Chris Forbes
2011-04-30 11:14:25 +12:00
parent f84832a24a
commit 279413f05b

View File

@@ -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();