From d726a6476fc7a34ba32f34b6969efa6e837848d1 Mon Sep 17 00:00:00 2001 From: alyosha-tas Date: Sat, 27 Apr 2019 07:59:10 -0400 Subject: [PATCH] Fix #1555 --- .../tools/TAStudio/TAStudio.MenuItems.cs | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.MenuItems.cs b/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.MenuItems.cs index 880445af5f..600a0579e6 100644 --- a/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.MenuItems.cs +++ b/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.MenuItems.cs @@ -862,7 +862,18 @@ namespace BizHawk.Client.EmuHawk DialogResult result = prompt.ShowDialog(); if (result == DialogResult.OK) { - int val = int.Parse(prompt.PromptText); + int val = 0; + try + { + val = int.Parse(prompt.PromptText); + } + catch + { + val = 100; + + MessageBox.Show("Invalid Entry. Restoring Default.", "Input Error", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + if (val > 0) { CurrentTasMovie.ChangeLog.MaxSteps = val;