From 6d3cdb74e397bf60804846ccedfcbf024b038e64 Mon Sep 17 00:00:00 2001 From: Foe Date: Thu, 4 Apr 2024 22:28:32 +0200 Subject: [PATCH] Forgot to save in previous commit, oops! See https://github.com/ElunaLuaEngine/Eluna/commit/08a55aeb636a929fa3898ba82f0fc0b59c87ab86 --- LuaValue.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;