Core/ChatCommands: Add trinity_string support for chat command help

This commit is contained in:
Treeston
2020-09-21 02:37:18 +02:00
committed by GitHub
parent e11b466897
commit 26c510775c
6 changed files with 58 additions and 14 deletions

View File

@@ -1622,7 +1622,7 @@ Trinity::ChatCommands::ChatCommandTable ScriptMgr::GetChatCommands()
{
Trinity::ChatCommands::ChatCommandTable table;
FOR_SCRIPTS_RET(CommandScript, itr, end, table)
FOR_SCRIPTS(CommandScript, itr, end)
{
Trinity::ChatCommands::ChatCommandTable cmds = itr->second->GetCommands();
std::move(cmds.begin(), cmds.end(), std::back_inserter(table));