mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-01 01:53:47 +00:00
Updated Chat.cpp (#162)
People should not get access violation now when appling commands, full credit goes to @Frytiks.
This commit is contained in:
@@ -270,7 +270,7 @@ bool ChatHandler::ExecuteCommandInTable(std::vector<ChatCommand> const& table, c
|
|||||||
// select subcommand from child commands list
|
// select subcommand from child commands list
|
||||||
if (!table[i].ChildCommands.empty())
|
if (!table[i].ChildCommands.empty())
|
||||||
{
|
{
|
||||||
if (!ExecuteCommandInTable(table[i].ChildCommands, text, fullcmd))
|
if (!ExecuteCommandInTable(table[i].ChildCommands, text, fullcmd.c_str()))
|
||||||
{
|
{
|
||||||
if (text[0] != '\0')
|
if (text[0] != '\0')
|
||||||
SendSysMessage(LANG_NO_SUBCMD);
|
SendSysMessage(LANG_NO_SUBCMD);
|
||||||
|
|||||||
Reference in New Issue
Block a user