whoops, setMetatable call was accidentally removed

This commit is contained in:
Kae 2024-03-17 13:36:30 +11:00
parent 53c7c3775f
commit e867822a70

View File

@ -1328,6 +1328,7 @@ LuaTable LuaDetail::insertJsonMetatable(LuaEngine& engine, LuaTable const& table
mt.rawSet("__nils", nils); mt.rawSet("__nils", nils);
mt.rawSet("__newindex", engine.createFunction(newIndexMetaMethod)); mt.rawSet("__newindex", engine.createFunction(newIndexMetaMethod));
mt.rawSet("__typehint", type == Json::Type::Array ? 1 : 2); mt.rawSet("__typehint", type == Json::Type::Array ? 1 : 2);
table.setMetatable(mt);
return nils; return nils;
} }