summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortalamortis <littlelee_1991@live.co.uk>2016-09-27 19:10:56 +0100
committerShin <borzifrancesco@gmail.com>2016-09-27 20:10:56 +0200
commitbaa148b2b129db44f024f1e42e93333433457cf4 (patch)
tree5ab6d575aa21adeb5b5bb379b358cb35d3abb7d7
parent8eb135e5456acebf44108f01bbee67fb07a4a317 (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.cpp2
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);