From b7a5a861bcbf024bec935f0073874f4c943a23ef Mon Sep 17 00:00:00 2001 From: ReignOfComputer Date: Tue, 14 Mar 2017 00:00:41 +0800 Subject: [PATCH] Fix Dump Boxes Naming (#937) Off-by-one error. --- PKHeX.WinForms/Util/SAVUtil.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PKHeX.WinForms/Util/SAVUtil.cs b/PKHeX.WinForms/Util/SAVUtil.cs index 7c9059819..47a79ff7d 100644 --- a/PKHeX.WinForms/Util/SAVUtil.cs +++ b/PKHeX.WinForms/Util/SAVUtil.cs @@ -36,7 +36,7 @@ public static bool dumpBoxes(this SaveFile SAV, string path, out string result, string boxfolder = ""; if (boxFolders) { - boxfolder = SAV.getBoxName(pk.Box); + boxfolder = SAV.getBoxName(pk.Box - 1); Directory.CreateDirectory(Path.Combine(path, boxfolder)); } if (!File.Exists(Path.Combine(Path.Combine(path, boxfolder), fileName)))