Core/ChatCommands: Add trinity_string support for chat command help

(cherry picked from commit 26c510775c6a1995d81b16ad7459227381801dcc)
This commit is contained in:
Treeston
2022-02-27 21:23:11 +01:00
committed by Shauren
parent 106c9b7541
commit 5e013a9996
6 changed files with 57 additions and 14 deletions
+1 -1
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));