Fix sav2 badge/tmhm clearing

Closes #1505
Thanks @fattard !
This commit is contained in:
Kurt 2017-10-02 23:17:00 -07:00
parent a9892203c7
commit ec491cdd52

View file

@ -300,7 +300,7 @@ namespace PKHeX.Core
public int Badges
{
get => BitConverter.ToUInt16(Data, Offsets.JohtoBadges);
set { if (value < 0) return; BitConverter.GetBytes(value).CopyTo(Data, Offsets.JohtoBadges); }
set { if (value < 0) return; BitConverter.GetBytes((ushort)value).CopyTo(Data, Offsets.JohtoBadges); }
}
private byte Options
{