Skip to content

Commit

Permalink
Quick bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Kade-github committed Oct 8, 2022
1 parent ce1129b commit 1258dae
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions LerpCreation/LFC.cs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ void ReshapeGraph()
string lua = "-- Requires math functions to be exposed!\n\nfunction LerpFunc(t)\n local val = t\n";
if (steps.Count != 0)
{
for (double i = 0; i <= 1.1; i += 0.05)
for (double i = 0; i <= 1.1; i += 0.1)
{
double y = i;
foreach (LerpStep s in steps)
Expand Down Expand Up @@ -322,7 +322,15 @@ private void saveStep_Click(object sender, EventArgs e)

private void listBox1_SelectedIndexChanged(object sender, EventArgs e)
{
currentStep = steps[((ListBox) sender).SelectedIndex];
try
{
currentStep = steps[((ListBox) sender).SelectedIndex];
}
catch
{
// ignored
}

}

// dark mode (too lazy to rename)
Expand Down

0 comments on commit 1258dae

Please sign in to comment.