TAStudio/PatternsForm: Block deletion of loop entry which would cause a crash
This commit is contained in:
parent
07ba36956a
commit
dd30a389a0
|
@ -88,6 +88,10 @@ namespace BizHawk.Client.EmuHawk
|
|||
|
||||
private void DeleteButton_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (PatternList.SelectedIndex >= _counts.Count)
|
||||
{
|
||||
return;
|
||||
}
|
||||
_counts.RemoveAt(PatternList.SelectedIndex);
|
||||
_values.RemoveAt(PatternList.SelectedIndex);
|
||||
UpdatePattern();
|
||||
|
|
Loading…
Reference in New Issue