lua_pushvalue is unneeded

This commit is contained in:
James R 2020-02-02 17:22:28 -08:00
parent deaf5cfa28
commit 35f1a4b76c

View file

@ -584,7 +584,6 @@ void LUA_PushLightUserdata (lua_State *L, void *data, const char *meta)
applies it to the second value, which is the userdata. applies it to the second value, which is the userdata.
*/ */
lua_setmetatable(L, -2); lua_setmetatable(L, -2);
lua_pushvalue(L, -1);
} }
else else
lua_pushnil(L); lua_pushnil(L);