From 876cbb9d18a3908ff7c44cd2e32022559331e424 Mon Sep 17 00:00:00 2001 From: Exp <17885980+exp111@users.noreply.github.com> Date: Wed, 2 Dec 2020 10:41:55 +0100 Subject: [PATCH] Fix exception when selecting two jobs with high prio (#2671) --- Content.Client/UserInterface/LobbyCharacterPreviewPanel.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Content.Client/UserInterface/LobbyCharacterPreviewPanel.cs b/Content.Client/UserInterface/LobbyCharacterPreviewPanel.cs index 9cf2221393..f0ffd50b59 100644 --- a/Content.Client/UserInterface/LobbyCharacterPreviewPanel.cs +++ b/Content.Client/UserInterface/LobbyCharacterPreviewPanel.cs @@ -133,7 +133,7 @@ namespace Content.Client.UserInterface var inventory = dummy.GetComponent(); - var highPriorityJob = profile.JobPriorities.SingleOrDefault(p => p.Value == JobPriority.High).Key; + var highPriorityJob = profile.JobPriorities.FirstOrDefault(p => p.Value == JobPriority.High).Key; var job = protoMan.Index(highPriorityJob ?? SharedGameTicker.OverflowJob); var gear = protoMan.Index(job.StartingGear);