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