From e867822a709d1341b604a9a014b4eb6cfb4aa422 Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Sun, 17 Mar 2024 13:36:30 +1100 Subject: [PATCH] whoops, setMetatable call was accidentally removed --- source/core/StarLua.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/core/StarLua.cpp b/source/core/StarLua.cpp index b5ac71e..4499ebc 100644 --- a/source/core/StarLua.cpp +++ b/source/core/StarLua.cpp @@ -1328,6 +1328,7 @@ LuaTable LuaDetail::insertJsonMetatable(LuaEngine& engine, LuaTable const& table mt.rawSet("__nils", nils); mt.rawSet("__newindex", engine.createFunction(newIndexMetaMethod)); mt.rawSet("__typehint", type == Json::Type::Array ? 1 : 2); + table.setMetatable(mt); return nils; }