From cd07b6615bb1fb7b1637d6b48325f94af12840fe Mon Sep 17 00:00:00 2001 From: Leonid Pospelov Date: Sat, 2 Nov 2024 02:55:41 +0500 Subject: [PATCH] internal: fix reference errors in wip_sp3.js (#2203) --- misc/wip_sp3.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misc/wip_sp3.js b/misc/wip_sp3.js index 702620048b..188874fb3b 100644 --- a/misc/wip_sp3.js +++ b/misc/wip_sp3.js @@ -130,7 +130,7 @@ function createSkyrimPlatform(api) { const impl = api._sp3GetFunctionImplementation(sp, className, staticFunction); f[staticFunction] = function () { - verifyTickIds(api, Array.from(arguments), spPrivate, className, method); + verifyTickIds(api, Array.from(arguments), spPrivate, className, staticFunction); const resWithoutClass = impl(...arguments); if (resWithoutClass === null || typeof resWithoutClass !== "object") { return resWithoutClass; @@ -154,7 +154,7 @@ function createSkyrimPlatform(api) { spPrivate.isCtorEnabled = false; resWithClass.type = obj.type; resWithClass.desc = obj.desc; - return res; + return resWithClass; } return null; }