diff --git a/src/BizHawk.Client.EmuHawk/tools/TAStudio/PatternsForm.cs b/src/BizHawk.Client.EmuHawk/tools/TAStudio/PatternsForm.cs index b45a4e8286..6e83cfed88 100644 --- a/src/BizHawk.Client.EmuHawk/tools/TAStudio/PatternsForm.cs +++ b/src/BizHawk.Client.EmuHawk/tools/TAStudio/PatternsForm.cs @@ -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; }