From 5a388c9fd7b5d158dc17e527a449655adc14fade Mon Sep 17 00:00:00 2001 From: Cheese Date: Sun, 28 Feb 2021 09:25:34 -0500 Subject: [PATCH] Fixed the issue w/ lerp command casting --- src/Miki/Modules/GeneralModule.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Miki/Modules/GeneralModule.cs b/src/Miki/Modules/GeneralModule.cs index cf4f8cf8..12d1c564 100644 --- a/src/Miki/Modules/GeneralModule.cs +++ b/src/Miki/Modules/GeneralModule.cs @@ -92,9 +92,9 @@ public Task CalculateAsync(IContext e) { case "lerp": { - double n = (double) x.Parameters[0].Evaluate(); - double v = (double) x.Parameters[1].Evaluate(); - double o = (double) x.Parameters[2].Evaluate(); + double n = Convert.ToDouble(x.Parameters[0].Evaluate()); + double v = Convert.ToDouble(x.Parameters[1].Evaluate()); + double o = Convert.ToDouble(x.Parameters[2].Evaluate()); x.Result = n * (1.0 - o) + v * o; break; }