From ab413b4ddc1136e8fe1982fec0752fe488797053 Mon Sep 17 00:00:00 2001 From: Evan Dixon Date: Tue, 11 Oct 2016 09:44:28 -0500 Subject: [PATCH] Fixed file size being altered when loading a dsv save (#316) --- 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 f9e7dd022..4c77a0861 100644 --- a/PKHeX/Saves/SaveUtil.cs +++ b/PKHeX/Saves/SaveUtil.cs @@ -608,7 +608,7 @@ namespace PKHeX if (dsv) { footer = input.Skip(SIZE_G4RAW).ToArray(); - input = input.Take(footer.Length).ToArray(); + input = input.Take(SIZE_G4RAW).ToArray(); } } if (input.Length == SIZE_G3BOXGCI)