From 9a2c159fe774a73496e151823570aac21ad25fc4 Mon Sep 17 00:00:00 2001 From: Mars <72959419+Mars7383@users.noreply.github.com> Date: Sun, 18 Aug 2024 12:26:55 -0400 Subject: [PATCH] Fix typo in luaY:errorLimit --- MainModule/Server/Dependencies/Loadstring/LuaY.luau | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MainModule/Server/Dependencies/Loadstring/LuaY.luau b/MainModule/Server/Dependencies/Loadstring/LuaY.luau index 05187a4169..75695ebbec 100644 --- a/MainModule/Server/Dependencies/Loadstring/LuaY.luau +++ b/MainModule/Server/Dependencies/Loadstring/LuaY.luau @@ -298,10 +298,10 @@ end -- * used only in checklimit() ------------------------------------------------------------------------ function luaY:errorlimit(fs, limit, what) - local msg = (fs.f.linedefined == 0) and + local msg = (fs.f.lineDefined == 0) and string.format("main function has more than %d %s", limit, what) or string.format("function at line %d has more than %d %s", - fs.f.linedefined, limit, what) + fs.f.lineDefined, limit, what) luaX:lexerror(fs.ls, msg, 0) end