lua_setfield pops the assigned value off the stack, so you need the lua_pushvalue to duplicate the metatable reference so that it's not lost when setting ...
確定! 回上一頁