Fix drag&drop and geolocation

PK6.cs now sets the SAV country/region instead of the pk6's.
SAV6.cs now sets the updated pk6 instead of the input ek6.

Thanks Dede!
This commit is contained in:
Kaphotics 2016-04-07 08:13:24 -07:00
parent be63fe7b7f
commit 844e24024b
2 changed files with 6 additions and 8 deletions

View file

@ -726,8 +726,8 @@ namespace PKHeX
Geo2_Country = Geo1_Country;
Geo2_Region = Geo1_Region;
Geo1_Country = Country;
Geo1_Region = Region;
Geo1_Country = GeoCountry;
Geo1_Region = GeoRegion;
}
public void TradeMemory(bool Bank)
{

View file

@ -571,8 +571,7 @@ namespace PKHeX
if (dex ?? SetUpdateDex)
setDex(pk6);
Array.Resize(ref ek6, PK6.SIZE_STORED);
setData(ek6, offset);
setData(pk6.EncryptedBoxData, offset);
Edited = true;
}
public void setEK6Party(byte[] ek6, int offset, bool? trade = null, bool? dex = null)
@ -584,8 +583,7 @@ namespace PKHeX
if (dex ?? SetUpdateDex)
setDex(pk6);
Array.Resize(ref ek6, PK6.SIZE_PARTY);
setData(ek6, offset);
setData(pk6.EncryptedPartyData, offset);
Edited = true;
}