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

This commit is contained in:
Joonas Rikkonen
2018-01-16 17:23:52 +02:00
parent 0f7befa09e
commit 633bd85e27

View File

@@ -195,6 +195,7 @@ namespace Barotrauma.Networking
Submarine.Unload();
GameMain.NetworkMember = null;
GameMain.GameSession = null;
GameMain.ServerListScreen.Select();
return true;