diff options
author | talamortis <littlelee_1991@live.co.uk> | 2016-09-27 19:10:56 +0100 |
---|---|---|
committer | Shin <borzifrancesco@gmail.com> | 2016-09-27 20:10:56 +0200 |
commit | baa148b2b129db44f024f1e42e93333433457cf4 (patch) | |
tree | 5ab6d575aa21adeb5b5bb379b358cb35d3abb7d7 | |
parent | 8eb135e5456acebf44108f01bbee67fb07a4a317 (diff) |
Updated Chat.cpp (#162)
People should not get access violation now when appling commands, full credit goes to @Frytiks.
-rw-r--r-- | src/game/Chat/Chat.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/Chat/Chat.cpp b/src/game/Chat/Chat.cpp index 553514df83..471e98c018 100644 --- a/src/game/Chat/Chat.cpp +++ b/src/game/Chat/Chat.cpp @@ -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); |