From 1e92c53bada3f8a109b05acbef08568aff703734 Mon Sep 17 00:00:00 2001 From: Timothy Schenk Date: Tue, 14 Nov 2023 21:38:34 +0100 Subject: [PATCH] fix: error on first channel selection --- Server/PacketHandlers/ChannelSelectionHandler.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Server/PacketHandlers/ChannelSelectionHandler.cs b/Server/PacketHandlers/ChannelSelectionHandler.cs index ec98a9c..e67ca30 100644 --- a/Server/PacketHandlers/ChannelSelectionHandler.cs +++ b/Server/PacketHandlers/ChannelSelectionHandler.cs @@ -37,7 +37,7 @@ public class ChannelSelectionHandler : IPacketHandler CharacterSelectionSetGuildNamePacket guildNameResponsePacket; var hasCharacters = this._wonderkingContext.Accounts.Include(account => account.Characters) - .FirstOrDefault(a => a.Id == authSession.AccountId)?.Characters.Count != 0; + .FirstOrDefault(a => a.Id == authSession.AccountId)?.Characters.Count > 0; var testingChars = false; if (hasCharacters && !testingChars) {