From a38a0fed608769b425efbe19620c342fd5d2773e Mon Sep 17 00:00:00 2001 From: Kurt Date: Wed, 26 Sep 2018 20:32:38 -0700 Subject: [PATCH] Update event flag index for frlg was block2+0x64 8*((0xF80-0xEE0)+0x64) = 0x820 this highlights a critical flaw in event flag reading; it expects the region to be contiguous in the savedata. it's not. that's super bad, and event flag r/w for flags >1280 won't work until I work something out --- PKHeX.Core/Saves/SAV3.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PKHeX.Core/Saves/SAV3.cs b/PKHeX.Core/Saves/SAV3.cs index 29c1c8a5a..56b155375 100644 --- a/PKHeX.Core/Saves/SAV3.cs +++ b/PKHeX.Core/Saves/SAV3.cs @@ -410,7 +410,7 @@ private int BadgeFlagStart if (Version == GameVersion.FRLG) return 800; // dec if (Version == GameVersion.RS) - return 0x807; // hex + return 0x820; // hex return 0x867; // emerald } }