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