mirror of
https://github.com/kwsch/PKHeX
synced 2025-02-17 13:58:33 +00:00
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:
parent
1650498fcc
commit
53a6aacd7d
1 changed files with 2 additions and 2 deletions
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue