diff --git a/Client/mods/deathmatch/logic/lua/CLuaFunctionParseHelpers.cpp b/Client/mods/deathmatch/logic/lua/CLuaFunctionParseHelpers.cpp index aefa82aeaf..bb7a2dbb9e 100644 --- a/Client/mods/deathmatch/logic/lua/CLuaFunctionParseHelpers.cpp +++ b/Client/mods/deathmatch/logic/lua/CLuaFunctionParseHelpers.cpp @@ -1192,10 +1192,8 @@ std::unordered_map ArgMapToStringMap(const std::unorde { std::unordered_map stringMap; - for (auto& [k, value] : argMap) + for (auto& [key, value] : argMap) { - CLuaArgument key = k; // make a copy due to GetAsString not working with const - SString keystr, valuestr; if (!key.GetAsString(keystr) || !value.GetAsString(valuestr)) continue; diff --git a/Server/mods/deathmatch/logic/lua/CLuaFunctionParseHelpers.cpp b/Server/mods/deathmatch/logic/lua/CLuaFunctionParseHelpers.cpp index ea3a403bc8..bdba25102a 100644 --- a/Server/mods/deathmatch/logic/lua/CLuaFunctionParseHelpers.cpp +++ b/Server/mods/deathmatch/logic/lua/CLuaFunctionParseHelpers.cpp @@ -818,10 +818,8 @@ std::unordered_map ArgMapToStringMap(const std::unorde { std::unordered_map stringMap; - for (auto& [k, value] : argMap) + for (auto& [key, value] : argMap) { - CLuaArgument key = k; // make a copy due to GetAsString not working with const - SString keystr, valuestr; if (!key.GetAsString(keystr) || !value.GetAsString(valuestr)) continue;