added 1 null check

top tier commit
master
Lan 2 years ago
parent a4f9dc1b7a
commit f0eadb0a16
  1. 2
      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;
}

Loading…
Cancel
Save