From 33988829f4d802c68421f9439e0d11f03118a2bc Mon Sep 17 00:00:00 2001 From: Lpsd <40902730+Lpsd@users.noreply.github.com> Date: Sat, 18 Nov 2023 06:08:28 +0000 Subject: [PATCH] Fix compilation error --- Server/mods/deathmatch/logic/luadefs/CLuaPlayerDefs.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); }