Fix box sort for empty locked slot(s)

This commit is contained in:
Kurt 2018-12-22 13:13:06 -08:00
parent 6dbc52e748
commit ec140431c0

View file

@ -37,7 +37,7 @@ namespace PKHeX.Core
for (int i = 0; i < p.Count; i++) for (int i = 0; i < p.Count; i++)
{ {
var index = p[i]; var index = p[i];
if (index >= bd.Count) if ((uint)index >= bd.Count)
continue; continue;
var pk = bd[index]; var pk = bd[index];
var newIndex = result.IndexOf(pk); var newIndex = result.IndexOf(pk);