mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-10 14:44:24 +00:00
Fix pk3 marking overflow issue
Closes #1062 Closes #1047 For those affected, use the batch editor to edit MarkValue from 255 to 0. =MarkValue=255 .MarkValue=0
This commit is contained in:
parent
346a9c9d4f
commit
0506359c41
1 changed files with 2 additions and 0 deletions
|
@ -1378,6 +1378,8 @@ namespace PKHeX.Core
|
|||
}
|
||||
if (strdata.Length > 0)
|
||||
strdata[strdata.Length - 1] = 0xFF;
|
||||
if (strdata.Length > maxLength)
|
||||
Array.Resize(ref strdata, maxLength);
|
||||
if (strdata.Length < padTo)
|
||||
{
|
||||
int start = strdata.Length;
|
||||
|
|
Loading…
Reference in a new issue