mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-05-09 04:24:36 -05:00
Prevent assert on non-exportable saves
This commit is contained in:
parent
14138121a9
commit
de77f949da
|
|
@ -32,7 +32,7 @@ public Zukan7(SaveFile sav, int dex, int langflag)
|
|||
PokeDexLanguageFlags = langflag;
|
||||
DexFormIndexFetcher = SAV.USUM ? (Func<int, int, int, int>) DexFormUtil.GetDexFormIndexSM : DexFormUtil.GetDexFormIndexSM;
|
||||
LoadDexList();
|
||||
Debug.Assert(BitConverter.ToUInt32(SAV.Data, PokeDex) == MAGIC);
|
||||
Debug.Assert(!SAV.Exportable || BitConverter.ToUInt32(SAV.Data, PokeDex) == MAGIC);
|
||||
}
|
||||
|
||||
protected void LoadDexList() => FormBaseSpecies = GetFormIndexBaseSpeciesList();
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user