From 633bd85e277766b9f7c9fb507e05195fe54111f4 Mon Sep 17 00:00:00 2001 From: Joonas Rikkonen Date: Tue, 16 Jan 2018 17:23:52 +0200 Subject: [PATCH] Fixed clients keeping a reference to the currently running GameSession after being kicked out of the server, causing an error if they rejoin and stay in the lobby while the server ends the round (because the gamesession attempts to generate a RoundSummary even though all subs have been unloaded). Closes #87 --- Barotrauma/BarotraumaClient/Source/Networking/GameClient.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Barotrauma/BarotraumaClient/Source/Networking/GameClient.cs b/Barotrauma/BarotraumaClient/Source/Networking/GameClient.cs index 47019be0a..82c1b866a 100644 --- a/Barotrauma/BarotraumaClient/Source/Networking/GameClient.cs +++ b/Barotrauma/BarotraumaClient/Source/Networking/GameClient.cs @@ -195,6 +195,7 @@ namespace Barotrauma.Networking Submarine.Unload(); GameMain.NetworkMember = null; + GameMain.GameSession = null; GameMain.ServerListScreen.Select(); return true;