From 242ff96e7f72a2bf74972bd21028d66190b319bf Mon Sep 17 00:00:00 2001 From: MaxXor Date: Thu, 4 Jun 2015 20:09:19 +0200 Subject: [PATCH] Removed redundant variable --- Server/Core/Commands/SystemHandler.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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);