aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2025-05-18 14:58:25 +0200
committerOvahlord <dreadkiller@gmx.de>2025-05-26 20:49:49 +0200
commit6047cf1f4b52074bab9899c6ef1348332d05d10c (patch)
tree2c8ee9d5dcd1923a3340624f6c13d600c2dc650c
parentf62401e6f9efba27d619fbdfc83204455c3a9715 (diff)
Core/Commands: Fixed parsing enum chat command arguments when they have a TITLE comment
(cherry picked from commit 1a78ac6fc92a410ada54103648e7577d9aa4b40d)
-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;