aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/server/game/Chat/ChatCommands/ChatCommandArgs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Chat/ChatCommands/ChatCommandArgs.h b/src/server/game/Chat/ChatCommands/ChatCommandArgs.h
index 67f4705fa6a..9369ed10eda 100644
--- a/src/server/game/Chat/ChatCommands/ChatCommandArgs.h
+++ b/src/server/game/Chat/ChatCommands/ChatCommandArgs.h
@@ -138,7 +138,7 @@ namespace Trinity::Impl::ChatCommands
std::string_view title(text.Title);
std::string_view constant(text.Constant);
- auto [constantIt, constantNew] = map.try_emplace(title, val);
+ auto [constantIt, constantNew] = map.try_emplace(constant, val);
if (!constantNew)
constantIt->second = std::nullopt;