From ef96bd435820da2d039a7acdbc369b8e44bfee5d Mon Sep 17 00:00:00 2001
From: Mike Welsh <mwelsh@gmail.com>
Date: Fri, 16 Feb 2024 17:22:55 -0800
Subject: [PATCH] Fix variable name in `MathUtils.smoothLerp`

---
 source/funkin/util/MathUtil.hx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/source/funkin/util/MathUtil.hx b/source/funkin/util/MathUtil.hx
index c8c4f5109..a078d6996 100644
--- a/source/funkin/util/MathUtil.hx
+++ b/source/funkin/util/MathUtil.hx
@@ -70,6 +70,6 @@ class MathUtil
     // var halfLife:Float = -duration / logBase(2, precision);
     // lerp(current, target, 1 - exp2(-elapsed / halfLife));
 
-    return lerp(current, target, 1 - Math.pow(p, elapsed / duration));
+    return lerp(current, target, 1 - Math.pow(precision, elapsed / duration));
   }
 }