Updated Chat.cpp (#162)
People should not get access violation now when appling commands, full credit goes to @Frytiks.
This commit is contained in:
parent
8eb135e545
commit
baa148b2b1
1 changed files with 1 additions and 1 deletions
|
|
@ -270,7 +270,7 @@ bool ChatHandler::ExecuteCommandInTable(std::vector<ChatCommand> const& table, c
|
|||
// select subcommand from child commands list
|
||||
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')
|
||||
SendSysMessage(LANG_NO_SUBCMD);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue