Fix kor2 string truncation

Closes #1896 , thanks @Narithegreat !
This commit is contained in:
Kurt 2018-04-11 17:06:13 -07:00
parent 7c1f163140
commit 6a93a7e435

View file

@ -201,7 +201,7 @@ namespace PKHeX.Core
arr.Add(val);
}
}
while (arr.Count >= maxLength)
while (arr.Count > maxLength)
arr.RemoveAt(arr.Count - 1);
arr.Add(0x50); // terminator
while (arr.Count < padTo)