From 8fe66fe2ae75121a6fa6909c04fa5c3cb11cd09c Mon Sep 17 00:00:00 2001 From: amy Date: Mon, 12 Jan 2026 16:26:35 -0600 Subject: fix nested metatables --- src/lua.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lua.c b/src/lua.c index bcec1ed..a1ae4cd 100644 --- a/src/lua.c +++ b/src/lua.c @@ -284,7 +284,7 @@ void luaI_deepcopy(lua_State* src, lua_State* dest, enum deep_copy_flags flags){ int tidx = lua_gettop(dest); if(modi && !(flags & SKIP_META) && lua_getmetatable(src, -1)){ - luaI_deepcopy(src, dest, flags | IS_META | SKIP_META); + luaI_deepcopy(src, dest, flags | IS_META); lua_setmetatable(dest, tidx); lua_settop(dest, tidx); @@ -488,3 +488,4 @@ int luaI_errtraceback(lua_State* L){ luaL_traceback(L, L, lua_tostring(L, -1), 1); return 1; } + -- cgit v1.2.3