Fix bool compare

oops
https://github.com/kwsch/PKHeX/issues/2600#issuecomment-569134146
ty @slp32 !
This commit is contained in:
Kurt 2019-12-26 13:12:10 -08:00
parent bb7c94dadb
commit 6c7065fb7b

View File

@ -58,7 +58,7 @@ public static bool InitFromSaveFileData(SaveFile sav)
ActiveTrainer = sav;
if (sav.Generation >= 3)
return AllowGBCartEra = false;
bool vc = sav.Exportable || (sav.FileName?.EndsWith("dat") ?? false); // default to true for non-exportable
bool vc = !sav.Exportable || (sav.FileName?.EndsWith("dat") ?? false); // default to true for non-exportable
return AllowGBCartEra = !vc; // physical cart selected
}
}