Core/ChatCommands: Add trinity_string support for chat command help

(cherry picked from commit 26c510775c)
This commit is contained in:
Treeston
2020-09-21 02:37:18 +02:00
committed by Shauren
parent 106c9b7541
commit 5e013a9996
6 changed files with 57 additions and 14 deletions

View File

@@ -1756,7 +1756,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));