aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2025-05-18 14:58:25 +0200
committerShauren <shauren.trinity@gmail.com>2025-05-18 14:58:25 +0200
commit1a78ac6fc92a410ada54103648e7577d9aa4b40d (patch)
tree3711459f898cfead60ae20fa339abb3a4a421bbd
parentc9577c5d6e167506afc7a6c291f7ea585d6a7716 (diff)
Core/Commands: Fixed parsing enum chat command arguments when they have a TITLE comment
-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;