TAStudio: autofirre pattern repeating zero times should not be allowed, fixes #2910

This commit is contained in:
alyosha-tas 2021-08-23 10:40:18 -04:00
parent 2f344f8ffd
commit 883d74d2cd
1 changed files with 6 additions and 0 deletions

View File

@ -130,6 +130,12 @@ namespace BizHawk.Client.EmuHawk
return;
}
// repeating zero times is not allowed
if ((int)CountNum.Value == 0)
{
CountNum.Value = 1;
}
if (PatternList.SelectedIndex == _counts.Count)
{
_loopAt = (int)CountNum.Value;