Skip to content

Commit

Permalink
Fix arg condition
Browse files Browse the repository at this point in the history
  • Loading branch information
ccuser44 authored Jan 2, 2025
1 parent 780c703 commit a72b6b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion VM/src/ltable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a72b6b2

Please sign in to comment.