diff --git a/LuaValue.cpp b/LuaValue.cpp index e957c4b988..134a85ede4 100644 --- a/LuaValue.cpp +++ b/LuaValue.cpp @@ -135,7 +135,7 @@ int LuaVal::lua_set(lua_State* L) { (**p).erase(kk); } else { - (**p).insert_or_assign(std::move(kk), std::move(vv)); + auto const& [it, _] = (**p).insert_or_assign(std::move(kk), std::move(vv)); return it->second.asObject(L); } return 0;