Fix exception when selecting two jobs with high prio (#2671)

This commit is contained in:
Exp
2020-12-02 10:41:55 +01:00
committed by GitHub
parent 7546cf09c3
commit 876cbb9d18

View File

@@ -133,7 +133,7 @@ namespace Content.Client.UserInterface
var inventory = dummy.GetComponent<ClientInventoryComponent>(); var inventory = dummy.GetComponent<ClientInventoryComponent>();
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<JobPrototype>(highPriorityJob ?? SharedGameTicker.OverflowJob); var job = protoMan.Index<JobPrototype>(highPriorityJob ?? SharedGameTicker.OverflowJob);
var gear = protoMan.Index<StartingGearPrototype>(job.StartingGear); var gear = protoMan.Index<StartingGearPrototype>(job.StartingGear);