Pop stack element used as argument of lua_topointer

This commit is contained in:
Jeffrey Quesnelle 2018-10-17 14:29:30 -04:00 committed by GitHub
parent 929e3f27a0
commit 511765c734
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -432,6 +432,7 @@ namespace sol {
const void* pointer() const noexcept {
int si = push();
const void* vp = lua_topointer(lua_state(), -si);
pop();
return vp;
}