From 3d3975e07ca3aab8a6fecc359daa72d6d7391951 Mon Sep 17 00:00:00 2001 From: Joonas Rikkonen Date: Sun, 7 Apr 2019 21:43:22 +0300 Subject: [PATCH] (0132c0433) Fixed client-side nullref exception when enabling game mode voting --- Barotrauma/BarotraumaClient/Source/Networking/GameClient.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Barotrauma/BarotraumaClient/Source/Networking/GameClient.cs b/Barotrauma/BarotraumaClient/Source/Networking/GameClient.cs index fb6837e05..b2edb72c1 100644 --- a/Barotrauma/BarotraumaClient/Source/Networking/GameClient.cs +++ b/Barotrauma/BarotraumaClient/Source/Networking/GameClient.cs @@ -1386,7 +1386,7 @@ namespace Barotrauma.Networking { MultiPlayerCampaign.ClientRead(inc); } - else if (GameMain.NetLobbyScreen.SelectedMode.Identifier != "multiplayercampaign") + else if (GameMain.NetLobbyScreen.SelectedMode?.Identifier != "multiplayercampaign") { GameMain.NetLobbyScreen.SetCampaignCharacterInfo(null); }