Review fixes

This commit is contained in:
Michael Bernardi committed 2026-04-01 02:19:02 +11:00
1 parent e924c00a0d
commit 7aa5a067d1
9 files changed
+9 -29

No files matched your search

+1 -1
View File
@@ -1828,7 +1828,7 @@ std::pair<std::unique_ptr<GameActions::GameAction>, bool> ScriptEngine::CreateGa
if (json.empty())
{
JSValue emptyObj = JS_NewObject(ctx);
JSValue jsonVal = JS_JSONStringify(ctx, args, JS_UNDEFINED, JS_UNDEFINED);
JSValue jsonVal = JS_JSONStringify(ctx, emptyObj, JS_UNDEFINED, JS_UNDEFINED);
json = JSToStdString(ctx, jsonVal);
JS_FreeValue(ctx, emptyObj);
JS_FreeValue(ctx, jsonVal);