mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-23 20:43:07 +00:00
Misc fixes
Off by 1 for MemArgType div/0 for no instructions Thanks Davil! https://projectpokemon.org/home/forums/topic/45324-menories-error/
This commit is contained in:
parent
815ba9d753
commit
bbe6762d24
2 changed files with 4 additions and 2 deletions
|
@ -51,6 +51,8 @@ namespace PKHeX.Core
|
|||
/// <returns>Friendly (multi-line) string indicating the result of the batch edits.</returns>
|
||||
public string GetEditorResults(ICollection<StringInstructionSet> sets)
|
||||
{
|
||||
if (sets.Count == 0)
|
||||
return MsgBEInstructionNone;
|
||||
int ctr = Modified / sets.Count;
|
||||
int len = Iterated / sets.Count;
|
||||
string maybe = sets.Count == 1 ? string.Empty : "~";
|
||||
|
|
|
@ -212,7 +212,7 @@ namespace PKHeX.WinForms
|
|||
CB_CTVar.DisplayMember = nameof(ComboItem.Text);
|
||||
CB_CTVar.ValueMember = nameof(ComboItem.Value);
|
||||
CB_CTVar.DataSource = argvals;
|
||||
LCTV.Text = vartypes[(int)memIndex];
|
||||
LCTV.Text = vartypes[(int)memIndex - 1];
|
||||
LCTV.Visible = CB_CTVar.Visible = CB_CTVar.Enabled = argvals.Count > 1;
|
||||
}
|
||||
else
|
||||
|
@ -220,7 +220,7 @@ namespace PKHeX.WinForms
|
|||
CB_OTVar.DisplayMember = nameof(ComboItem.Text);
|
||||
CB_OTVar.ValueMember = nameof(ComboItem.Value);
|
||||
CB_OTVar.DataSource = argvals;
|
||||
LOTV.Text = vartypes[(int)memIndex];
|
||||
LOTV.Text = vartypes[(int)memIndex - 1];
|
||||
LOTV.Visible = CB_OTVar.Visible = CB_OTVar.Enabled = argvals.Count > 1;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue