From a19756cc5a8e227d41eb9f424864db2055e2a930 Mon Sep 17 00:00:00 2001 From: nuoun <10226424+nuoun@users.noreply.github.com> Date: Sun, 1 Dec 2024 02:08:23 +0100 Subject: [PATCH] Update wtse_prelude.lua Fix math table missing in maxAbsFromTable abs function --- src/lua/wtse_prelude.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lua/wtse_prelude.lua b/src/lua/wtse_prelude.lua index 42707434633..16645947767 100644 --- a/src/lua/wtse_prelude.lua +++ b/src/lua/wtse_prelude.lua @@ -92,7 +92,7 @@ end function math.maxAbsFromTable(t) local o = 0 for i = 1, #t do - local a = abs(t[i]) + local a = math.abs(t[i]) if a > o then o = a end end return o @@ -115,4 +115,4 @@ end --- END --- -return surge \ No newline at end of file +return surge