Fix #1555
This commit is contained in:
parent
356039638a
commit
d726a6476f
|
@ -862,7 +862,18 @@ namespace BizHawk.Client.EmuHawk
|
||||||
DialogResult result = prompt.ShowDialog();
|
DialogResult result = prompt.ShowDialog();
|
||||||
if (result == DialogResult.OK)
|
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)
|
if (val > 0)
|
||||||
{
|
{
|
||||||
CurrentTasMovie.ChangeLog.MaxSteps = val;
|
CurrentTasMovie.ChangeLog.MaxSteps = val;
|
||||||
|
|
Loading…
Reference in New Issue