From 883d74d2cd5ba7af9c5c0353178ce8433ded7670 Mon Sep 17 00:00:00 2001 From: alyosha-tas Date: Mon, 23 Aug 2021 10:40:18 -0400 Subject: [PATCH] TAStudio: autofirre pattern repeating zero times should not be allowed, fixes #2910 --- src/BizHawk.Client.EmuHawk/tools/TAStudio/PatternsForm.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/BizHawk.Client.EmuHawk/tools/TAStudio/PatternsForm.cs b/src/BizHawk.Client.EmuHawk/tools/TAStudio/PatternsForm.cs index 8a88802be2..b45a4e8286 100644 --- a/src/BizHawk.Client.EmuHawk/tools/TAStudio/PatternsForm.cs +++ b/src/BizHawk.Client.EmuHawk/tools/TAStudio/PatternsForm.cs @@ -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;