From 7f54bcfaec05d093623c8da9891b45591c2e17c4 Mon Sep 17 00:00:00 2001 From: Maximilian Rehms <74744500+max5800@users.noreply.github.com> Date: Sat, 18 May 2024 22:36:57 +0200 Subject: [PATCH] successful implemented suggested change to "lua_nil" Co-authored-by: Lion --- src/TLuaEngine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TLuaEngine.cpp b/src/TLuaEngine.cpp index e231982..4493158 100644 --- a/src/TLuaEngine.cpp +++ b/src/TLuaEngine.cpp @@ -268,7 +268,7 @@ std::vector TLuaEngine::StateThreadData::GetStateTableKeys(const st for (size_t i = 0; i < keys.size(); ++i) { auto obj = current.get(keys.at(i)); - if (obj.get_type() == sol::type::none) { + if (obj.get_type() == sol::type::lua_nil) { // error break; } else if (i == keys.size() - 1) {