Fix ball clearing

Oops, 0x80/0x81 only, not 0x80/0x81/..0x82/0x83; was overwriting other
pkm properties.
0xBBA was treated as 16bit

Fixes #184 , thanks @Ninjistix !
This commit is contained in:
Kaphotics 2016-08-17 20:28:42 -07:00
parent 1650498fcc
commit 53a6aacd7d

View file

@ -269,7 +269,7 @@ namespace PKHeX
else if (PtHGSS)
{
BitConverter.GetBytes((ushort)value).CopyTo(Data, 0x44);
BitConverter.GetBytes(0xBBA).CopyTo(Data, 0x7E); // Faraway Place (for DP display)
BitConverter.GetBytes((ushort)0xBBA).CopyTo(Data, 0x7E); // Faraway Place (for DP display)
}
else if ((value < 2000 && value > 111) || (value < 3000 && value > 2010))
{
@ -303,7 +303,7 @@ namespace PKHeX
else if (PtHGSS)
{
BitConverter.GetBytes((ushort)value).CopyTo(Data, 0x46);
BitConverter.GetBytes(0xBBA).CopyTo(Data, 0x80); // Faraway Place (for DP display)
BitConverter.GetBytes((ushort)0xBBA).CopyTo(Data, 0x80); // Faraway Place (for DP display)
}
else if ((value < 2000 && value > 111) || (value < 3000 && value > 2010))
{