mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
Pop the correct element that was pushed
This commit is contained in:
parent
511765c734
commit
2ebbe5de86
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user