TAStudio/PatternsForm: Allow looping to entry zero

This commit is contained in:
Daniel Parks 2023-04-26 21:40:14 -05:00 committed by James Groom
parent 0960661509
commit 07ba36956a
1 changed files with 6 additions and 6 deletions

View File

@ -130,18 +130,18 @@ 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;
}
else
{
// repeating zero times is not allowed
if ((int)CountNum.Value == 0)
{
CountNum.Value = 1;
}
_counts[PatternList.SelectedIndex] = (int)CountNum.Value;
}