Fix memory leak in scripting_environment_lua.cpp

This commit is contained in:
Dennis 2024-05-10 12:58:35 +02:00
parent 6a3dd71735
commit e780533ed5

View File

@ -1080,7 +1080,7 @@ Sol2ScriptingEnvironment::GetStringListsFromTable(const std::string &table_name)
for (const auto &pair : *table)
{
sol::table inner_table = pair.second;
const sol::table& inner_table = pair.second;
if (!inner_table.valid())
{
throw util::exception("Expected a sub-table at " + table_name + "[" +