Fixed client-side null exception when the client is in the lobby and a round ends with the mission successfully completed
This commit is contained in:
@@ -552,7 +552,7 @@ namespace Barotrauma.Networking
|
||||
case ServerPacketHeader.ENDGAME:
|
||||
string endMessage = inc.ReadString();
|
||||
bool missionSuccessful = inc.ReadBoolean();
|
||||
if (missionSuccessful && GameMain.GameSession.Mission != null)
|
||||
if (missionSuccessful && GameMain.GameSession?.Mission != null)
|
||||
{
|
||||
GameMain.GameSession.Mission.Completed = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user