fix table iterators

This commit is contained in:
ThePhD 2018-11-27 22:19:18 -05:00
parent 4a0f382412
commit 9b782ff6d3
No known key found for this signature in database
GPG Key ID: 1509DB1C0F702BFA
3 changed files with 6 additions and 6 deletions

View File

@ -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);
}
}

View File

@ -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

View File

@ -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);
}
}