Fix Dump Boxes Naming (#937)

Off-by-one error.
This commit is contained in:
ReignOfComputer
2017-03-14 00:00:41 +08:00
committed by Kaphotics
parent cc5b065a39
commit b7a5a861bc

View File

@@ -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)))