Pop the correct element that was pushed

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

View File

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