Skip to content

Commit

Permalink
Fix gen3 jp OT editing breaking jp detection
Browse files Browse the repository at this point in the history
Thanks ajxpk!
  • Loading branch information
kwsch committed Sep 14, 2017
1 parent 7d8a0e0 commit 73d547b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion PKHeX.Core/Saves/SAV3.cs
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,11 @@ private uint SecurityKey
public override string OT
{
get => GetString(BlockOfs[0], 0x10);
set => SetString(value, OTLength, PadWith:0xFF).CopyTo(Data, BlockOfs[0]);
set
{
int len = Japanese ? 5 : OTLength;
SetString(value, len, PadWith: 0xFF, PadToSize: len).CopyTo(Data, BlockOfs[0]);
}
}
public override int Gender
{
Expand Down

0 comments on commit 73d547b

Please sign in to comment.