Updated Chat.cpp (#162)

People should not get access violation now when appling commands, full credit goes to @Frytiks.
This commit is contained in:
talamortis
2016-09-27 19:10:56 +01:00
committed by Shin
parent 8eb135e545
commit baa148b2b1

View File

@@ -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);