mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-09-11 00:55:19 -05:00
Fix bool compare
oops https://github.com/kwsch/PKHeX/issues/2600#issuecomment-569134146 ty @slp32 !
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user