Skip to content

Commit

Permalink
internal: fix reference errors in wip_sp3.js (#2203)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pospelove authored Nov 1, 2024
1 parent a2340b1 commit cd07b66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions misc/wip_sp3.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -154,7 +154,7 @@ function createSkyrimPlatform(api) {
spPrivate.isCtorEnabled = false;
resWithClass.type = obj.type;
resWithClass.desc = obj.desc;
return res;
return resWithClass;
}
return null;
}
Expand Down

0 comments on commit cd07b66

Please sign in to comment.