mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-05-19 20:28:24 -05:00
Fix pk2->pk1 nickname copy
nobody noticed until I did
This commit is contained in:
parent
b45ce123da
commit
2e6364dceb
|
|
@ -122,7 +122,7 @@ public PK1 ConvertToPK1()
|
|||
}
|
||||
// Status = 0
|
||||
OT_Trash.CopyTo(pk1.OT_Trash);
|
||||
Nickname_Trash.CopyTo(pk1.OT_Trash);
|
||||
Nickname_Trash.CopyTo(pk1.Nickname_Trash);
|
||||
|
||||
pk1.ClearInvalidMoves();
|
||||
|
||||
|
|
|
|||
|
|
@ -108,8 +108,7 @@ private void SetStringKeepTerminatorStyle(ReadOnlySpan<char> value, Span<byte> e
|
|||
// Reset the destination buffer based on the termination style of the existing string.
|
||||
bool zeroed = exist.IndexOf((byte)0) != -1;
|
||||
byte fill = zeroed ? (byte)0 : StringConverter12.G1TerminatorCode;
|
||||
for (int i = 0; i < exist.Length; i++)
|
||||
exist[i] = fill;
|
||||
exist.Fill(fill);
|
||||
|
||||
int finalLength = Math.Min(value.Length + 1, exist.Length);
|
||||
SetString(value, exist, finalLength);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user