From 1899e4e11e7fab4c9536d2f9cb3b6a9a313674dc Mon Sep 17 00:00:00 2001 From: Kurt Date: Tue, 20 Dec 2016 09:22:15 -0800 Subject: [PATCH] Fix file loading exception Closes #653 --- PKHeX/Saves/SaveUtil.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PKHeX/Saves/SaveUtil.cs b/PKHeX/Saves/SaveUtil.cs index 2884367ce..d00c3b03b 100644 --- a/PKHeX/Saves/SaveUtil.cs +++ b/PKHeX/Saves/SaveUtil.cs @@ -118,7 +118,7 @@ public static bool getIsG1SAVJ(byte[] data) /// Version Identifier or Invalid if type cannot be determined. public static GameVersion getIsG2SAV(byte[] data) { - if (new[] {SIZE_G2RAW_J, SIZE_G2RAW_U, SIZE_G2BAT_J, SIZE_G2BAT_U, SIZE_G2EMU, SIZE_G2VC}.Contains(data.Length)) + if (!new[] {SIZE_G2RAW_J, SIZE_G2RAW_U, SIZE_G2BAT_J, SIZE_G2BAT_U, SIZE_G2EMU, SIZE_G2VC}.Contains(data.Length)) return GameVersion.Invalid; // Check if it's not an american save or a japanese save