Fixed Off By One Error in Single Box Dump (#1956)

Huh, how long has this been here :O
This commit is contained in:
ReignOfComputer 2018-05-22 09:24:29 +08:00 committed by Kurt
parent 05e3b3c8c3
commit a81b43cd4f
11 changed files with 11 additions and 11 deletions

View file

@ -108,7 +108,7 @@ MsgSaveBoxExportYes = Yes: Export All Boxes
MsgSaveBoxExportNo = No: Export {0} (Box {1})
MsgSaveBoxExportCancel = Cancel: Abort
MsgSaveBoxExportInvalid = Invalid Box Data, unable to dump.
MsgSaveBoxExportPathCount = Dumped Box(es) ( {0} pkm) to path:
MsgSaveBoxExportPathCount = Dumped Box(es) ({0} pkm) to path:
MsgSaveBoxExportPathInvalid = Invalid path specified.
MsgSaveBoxImportModifyIntro = PKM Loading overrides:
MsgSaveBoxImportModifyYes = Yes - Modify .pk* when set to SAV

View file

@ -108,7 +108,7 @@ MsgSaveBoxExportYes = Yes: Export All Boxes
MsgSaveBoxExportNo = No: Export {0} (Box {1})
MsgSaveBoxExportCancel = Cancel: Abort
MsgSaveBoxExportInvalid = Invalid Box Data, unable to dump.
MsgSaveBoxExportPathCount = Dumped Box(es) ( {0} pkm) to path:
MsgSaveBoxExportPathCount = Dumped Box(es) ({0} pkm) to path:
MsgSaveBoxExportPathInvalid = Invalid path specified.
MsgSaveBoxImportModifyIntro = PKM Loading overrides:
MsgSaveBoxImportModifyYes = Yes - Modify .pk* when set to SAV

View file

@ -108,7 +108,7 @@ MsgSaveBoxExportYes = Sí: Exportar todas las cajas
MsgSaveBoxExportNo = No: Exportar {0} (Caja {1})
MsgSaveBoxExportCancel = Cancelar: Abortar
MsgSaveBoxExportInvalid = Datos de caja no válidos. no se ha podido exportar.
MsgSaveBoxExportPathCount = Exportado Caja(s) ( {0} pkm) en ruta:
MsgSaveBoxExportPathCount = Exportado Caja(s) ({0} pkm) en ruta:
MsgSaveBoxExportPathInvalid = Ruta especificada no válida.
MsgSaveBoxImportModifyIntro = La carga del PKM sobreescribe:
MsgSaveBoxImportModifyYes = Sí - Modificar .pk* al colocar en SAV

View file

@ -108,7 +108,7 @@ MsgSaveBoxExportYes = Yes: Export All Boxes
MsgSaveBoxExportNo = No: Export {0} (Box {1})
MsgSaveBoxExportCancel = Cancel: Abort
MsgSaveBoxExportInvalid = Invalid Box Data, unable to dump.
MsgSaveBoxExportPathCount = Dumped Box(es) ( {0} pkm) to path:
MsgSaveBoxExportPathCount = Dumped Box(es) ({0} pkm) to path:
MsgSaveBoxExportPathInvalid = Invalid path specified.
MsgSaveBoxImportModifyIntro = PKM Loading overrides:
MsgSaveBoxImportModifyYes = Yes - Modify .pk* when set to SAV

View file

@ -108,7 +108,7 @@ MsgSaveBoxExportYes = Yes: Export All Boxes
MsgSaveBoxExportNo = No: Export {0} (Box {1})
MsgSaveBoxExportCancel = Cancel: Abort
MsgSaveBoxExportInvalid = Invalid Box Data, unable to dump.
MsgSaveBoxExportPathCount = Dumped Box(es) ( {0} pkm) to path:
MsgSaveBoxExportPathCount = Dumped Box(es) ({0} pkm) to path:
MsgSaveBoxExportPathInvalid = Invalid path specified.
MsgSaveBoxImportModifyIntro = PKM Loading overrides:
MsgSaveBoxImportModifyYes = Yes - Modify .pk* when set to SAV

View file

@ -108,7 +108,7 @@ MsgSaveBoxExportYes = Yes: Export All Boxes
MsgSaveBoxExportNo = No: Export {0} (Box {1})
MsgSaveBoxExportCancel = Cancel: Abort
MsgSaveBoxExportInvalid = Invalid Box Data, unable to dump.
MsgSaveBoxExportPathCount = Dumped Box(es) ( {0} pkm) to path:
MsgSaveBoxExportPathCount = Dumped Box(es) ({0} pkm) to path:
MsgSaveBoxExportPathInvalid = Invalid path specified.
MsgSaveBoxImportModifyIntro = PKM Loading overrides:
MsgSaveBoxImportModifyYes = Yes - Modify .pk* when set to SAV

View file

@ -108,7 +108,7 @@ MsgSaveBoxExportYes = Yes: Export All Boxes
MsgSaveBoxExportNo = No: Export {0} (Box {1})
MsgSaveBoxExportCancel = Cancel: Abort
MsgSaveBoxExportInvalid = Invalid Box Data, unable to dump.
MsgSaveBoxExportPathCount = Dumped Box(es) ( {0} pkm) to path:
MsgSaveBoxExportPathCount = Dumped Box(es) ({0} pkm) to path:
MsgSaveBoxExportPathInvalid = Invalid path specified.
MsgSaveBoxImportModifyIntro = PKM Loading overrides:
MsgSaveBoxImportModifyYes = Yes - Modify .pk* when set to SAV

View file

@ -108,7 +108,7 @@ MsgSaveBoxExportYes = Yes: Export All Boxes
MsgSaveBoxExportNo = No: Export {0} (Box {1})
MsgSaveBoxExportCancel = Cancel: Abort
MsgSaveBoxExportInvalid = Invalid Box Data, unable to dump.
MsgSaveBoxExportPathCount = Dumped Box(es) ( {0} pkm) to path:
MsgSaveBoxExportPathCount = Dumped Box(es) ({0} pkm) to path:
MsgSaveBoxExportPathInvalid = Invalid path specified.
MsgSaveBoxImportModifyIntro = PKM Loading overrides:
MsgSaveBoxImportModifyYes = Yes - Modify .pk* when set to SAV

View file

@ -108,7 +108,7 @@ MsgSaveBoxExportYes = 是: 导出所有合作
MsgSaveBoxExportNo = 否: 导出 {0} (盒子 {1})
MsgSaveBoxExportCancel = 取消: 退出
MsgSaveBoxExportInvalid = 无效盒子数据,无法导出。
MsgSaveBoxExportPathCount = 导出盒子 ( {0} 宝可梦) 到路径:
MsgSaveBoxExportPathCount = 导出盒子 ({0} 宝可梦) 到路径:
MsgSaveBoxExportPathInvalid = 无效文件路径。
MsgSaveBoxImportModifyIntro = 导入宝可梦覆盖了:
MsgSaveBoxImportModifyYes = 是 - 修改 .pk* 当导入到存档

View file

@ -151,7 +151,7 @@ namespace PKHeX.Core
public static string MsgSaveBoxExportNo { get; set; } = "No: Export {0} (Box {1})";
public static string MsgSaveBoxExportCancel { get; set; } = "Cancel: Abort";
public static string MsgSaveBoxExportInvalid { get; set; } = "Invalid Box Data, unable to dump.";
public static string MsgSaveBoxExportPathCount { get; set; } = "Dumped Box(es) ( {0} pkm) to path:";
public static string MsgSaveBoxExportPathCount { get; set; } = "Dumped Box(es) ({0} pkm) to path:";
public static string MsgSaveBoxExportPathInvalid { get; set; } = "Invalid path specified.";
public static string MsgSaveBoxImportModifyIntro { get; set; } = "PKM Loading overrides:";
public static string MsgSaveBoxImportModifyYes { get; set; } = "Yes - Modify .pk* when set to SAV";

View file

@ -66,7 +66,7 @@ namespace PKHeX.WinForms
int ctr = 0;
foreach (PKM pk in boxdata)
{
if (pk.Species == 0 || !pk.Valid || (pk.Box - 1) != currentBox)
if (pk.Species == 0 || !pk.Valid || pk.Box != currentBox)
continue;
ctr++;