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:
@@ -195,6 +195,7 @@ namespace Barotrauma.Networking
|
||||
|
||||
Submarine.Unload();
|
||||
GameMain.NetworkMember = null;
|
||||
GameMain.GameSession = null;
|
||||
GameMain.ServerListScreen.Select();
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user