successful implemented suggested change to "lua_nil"

Co-authored-by: Lion <development@kortlepel.com>
This commit is contained in:
Maximilian Rehms 2024-05-18 22:36:57 +02:00 committed by GitHub
parent 785c5343cd
commit 7f54bcfaec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -268,7 +268,7 @@ std::vector<std::string> TLuaEngine::StateThreadData::GetStateTableKeys(const st
for (size_t i = 0; i < keys.size(); ++i) {
auto obj = current.get<sol::object>(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) {