mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
fix table iterators
This commit is contained in:
parent
4a0f382412
commit
9b782ff6d3
|
@ -20,8 +20,8 @@
|
|||
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
// This file was generated with a script.
|
||||
// Generated 2018-11-27 15:20:21.502906 UTC
|
||||
// This header was generated with sol v2.20.6 (revision f404395)
|
||||
// Generated 2018-11-28 03:18:56.546705 UTC
|
||||
// This header was generated with sol v2.20.6 (revision 4a0f382)
|
||||
// https://github.com/ThePhD/sol2
|
||||
|
||||
#ifndef SOL_SINGLE_INCLUDE_HPP
|
||||
|
@ -19972,7 +19972,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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -20,8 +20,8 @@
|
|||
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
// This file was generated with a script.
|
||||
// Generated 2018-11-27 15:20:22.201348 UTC
|
||||
// This header was generated with sol v2.20.6 (revision f404395)
|
||||
// Generated 2018-11-28 03:18:56.778088 UTC
|
||||
// This header was generated with sol v2.20.6 (revision 4a0f382)
|
||||
// https://github.com/ThePhD/sol2
|
||||
|
||||
#ifndef SOL_SINGLE_INCLUDE_FORWARD_HPP
|
||||
|
|
|
@ -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