Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/core/StarLua.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/core/StarLua.cpp')
-rw-r--r--source/core/StarLua.cpp1
1 files changed, 1 insertions, 0 deletions
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;
}