From baa148b2b129db44f024f1e42e93333433457cf4 Mon Sep 17 00:00:00 2001 From: talamortis Date: Tue, 27 Sep 2016 19:10:56 +0100 Subject: [PATCH] Updated Chat.cpp (#162) People should not get access violation now when appling commands, full credit goes to @Frytiks. --- src/game/Chat/Chat.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/Chat/Chat.cpp b/src/game/Chat/Chat.cpp index 553514df8..471e98c01 100644 --- a/src/game/Chat/Chat.cpp +++ b/src/game/Chat/Chat.cpp @@ -270,7 +270,7 @@ bool ChatHandler::ExecuteCommandInTable(std::vector 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);