Skip to content

Commit

Permalink
Update SAV1.cs
Browse files Browse the repository at this point in the history
Closes #3583
  • Loading branch information
kwsch committed Sep 12, 2022
1 parent c5908b2 commit d5cdd3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PKHeX.Core/Saves/SAV1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ private byte GetRBYChecksum(int start, int end)
public override string OT
{
get => GetString(Offsets.OT, OTLength);
set => SetString(Data.AsSpan(Offsets.OT, OTLength), value.AsSpan(), OTLength, StringConverterOption.Clear50);
set => SetString(Data.AsSpan(Offsets.OT, OTLength + 1), value.AsSpan(), OTLength, StringConverterOption.ClearZero);
}

public Span<byte> OT_Trash { get => Data.AsSpan(Offsets.OT, StringLength); set { if (value.Length == StringLength) value.CopyTo(Data.AsSpan(Offsets.OT)); } }
Expand Down

0 comments on commit d5cdd3e

Please sign in to comment.