diff --git a/Kehyeedra3/Commands/Interactive.cs b/Kehyeedra3/Commands/Interactive.cs index e782171..186fb7d 100644 --- a/Kehyeedra3/Commands/Interactive.cs +++ b/Kehyeedra3/Commands/Interactive.cs @@ -631,7 +631,7 @@ namespace Kehyeedra3.Commands int itemid = 0; int itemnum = 0; - if (!itemlist.Any(i => (int)i.Id == (int.Parse(sec)))) + if (sec != null && !itemlist.Any(i => (int)i.Id == (int.Parse(sec))) ) { sec = null; }