From a72b6b2d47c4c6574ede5dab490344820f85ce16 Mon Sep 17 00:00:00 2001 From: ccuser44 <68124053+ccuser44@users.noreply.github.com> Date: Thu, 2 Jan 2025 16:10:18 +0200 Subject: [PATCH] Fix arg condition --- VM/src/ltable.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VM/src/ltable.cpp b/VM/src/ltable.cpp index 115292b3b..3be917e47 100644 --- a/VM/src/ltable.cpp +++ b/VM/src/ltable.cpp @@ -807,7 +807,7 @@ Table* luaH_clone(lua_State* L, Table* tt, bool raw) t->node = cast_to(LuaNode*, dummynode); t->lastfree = 0; - if (raw) // Prevent unauthorized assigning of locked metatables + if (!raw) // Prevent unauthorized assigning of locked metatables t->metatable = tt->metatable; if (tt->sizearray)