diff --git a/src/scriptInterfaceMagic.h b/src/scriptInterfaceMagic.h index 65e0c32..34a22bb 100644 --- a/src/scriptInterfaceMagic.h +++ b/src/scriptInterfaceMagic.h @@ -198,9 +198,6 @@ struct convert> *p = new P(); (**p) = ptr; - // protect the new userdata's metatable - protectLuaMetatable(L); - lua_rawset(L, -3); lua_pushlightuserdata(L, ptr);