diff options
| author | amy <[email protected]> | 2026-01-12 16:26:35 -0600 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-01-12 16:26:35 -0600 |
| commit | 8fe66fe2ae75121a6fa6909c04fa5c3cb11cd09c (patch) | |
| tree | d1da083e33c72dde0f888a12f0105f27095e0cd5 /src | |
| parent | 5ea12787f87f3ea60935b7a1f5b24be80cb2dec6 (diff) | |
fix nested metatablesstate-copy-changes
Diffstat (limited to 'src')
| -rw-r--r-- | src/lua.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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;
}
+
|
