diff --git a/Server/Core/Commands/SystemHandler.cs b/Server/Core/Commands/SystemHandler.cs index 92573946..680cd7dc 100644 --- a/Server/Core/Commands/SystemHandler.cs +++ b/Server/Core/Commands/SystemHandler.cs @@ -126,9 +126,8 @@ public static void HandleGetStartupItemsResponse(Client client, GetStartupItemsR { if (client.Value.FrmStm == null) return; - char tempChar = item[0]; int type; - if (!int.TryParse(tempChar.ToString(), out type)) continue; + if (!int.TryParse(item.Substring(0, 1), out type)) continue; string preparedItem = item.Remove(0, 1); var temp = preparedItem.Split(new string[] { "||" }, StringSplitOptions.None);