Core/Commands: Fixed parsing enum chat command arguments when they have a TITLE comment

(cherry picked from commit 1a78ac6fc9)
This commit is contained in:
Shauren
2025-05-18 14:58:25 +02:00
committed by Ovahlord
parent f62401e6f9
commit 6047cf1f4b

View File

@@ -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;