mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
Merge branch 'develop' into sol3
# Conflicts: # include/single/sol/sol.hpp # include/single/sol/sol_forward.hpp
This commit is contained in:
commit
1e514f145f
|
@ -109,7 +109,7 @@ namespace sol {
|
|||
if (keyidx != -1) {
|
||||
stack::remove(ref.lua_state(), keyidx, 1);
|
||||
}
|
||||
if (ref.valid()) {
|
||||
if (ref.lua_state() != nullptr && ref.valid()) {
|
||||
stack::remove(ref.lua_state(), tableidx, 1);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user