Fix issues with .NET 5.
This commit is contained in:
@@ -142,7 +142,8 @@ namespace Content.Server.Preferences
|
||||
int? nextSlot = null;
|
||||
if (curPrefs.SelectedCharacterIndex == slot)
|
||||
{
|
||||
var (ns, profile) = curPrefs.Characters.FirstOrDefault(p => p.Key != message.Slot);
|
||||
// That ! on the end is because Rider doesn't like .NET 5.
|
||||
var (ns, profile) = curPrefs.Characters.FirstOrDefault(p => p.Key != message.Slot)!;
|
||||
if (profile == null)
|
||||
{
|
||||
// Only slot left, can't delete.
|
||||
|
||||
Reference in New Issue
Block a user