mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-30 05:43:12 +01:00
Core/Commands: Fixed parsing enum chat command arguments when they have a TITLE comment
(cherry picked from commit 1a78ac6fc9)
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user