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

summaryrefslogtreecommitdiff
path: root/source/core/StarLua.cpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2024-03-17 13:36:30 +1100
committerKae <80987908+Novaenia@users.noreply.github.com>2024-03-17 13:36:30 +1100
commite867822a709d1341b604a9a014b4eb6cfb4aa422 (patch)
treede126829a47ce40090ec092fb39732b58458c20b /source/core/StarLua.cpp
parent53c7c3775fae0810b0831297b50aab1b0a1ef4e0 (diff)
whoops, setMetatable call was accidentally removed
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;
}