diff --git a/Server/mods/deathmatch/logic/luadefs/CLuaPlayerDefs.cpp b/Server/mods/deathmatch/logic/luadefs/CLuaPlayerDefs.cpp index 1b54c7b601..2c882be09a 100644 --- a/Server/mods/deathmatch/logic/luadefs/CLuaPlayerDefs.cpp +++ b/Server/mods/deathmatch/logic/luadefs/CLuaPlayerDefs.cpp @@ -1171,7 +1171,8 @@ bool CLuaPlayerDefs::RedirectPlayer(CPlayer* pElement, std::string strHost, unsi if (mArgs.has_value()) { - auto& strArgs = ArgMapToStringMap(mArgs.value()); + auto& mapArgs = mArgs.value(); + auto& strArgs = ArgMapToStringMap(mapArgs); strDetails = StringMapToArgString(strArgs); }