diff --git a/src/lua/TPTScriptInterface.cpp b/src/lua/TPTScriptInterface.cpp index 67e243f56..5d3c0ba72 100644 --- a/src/lua/TPTScriptInterface.cpp +++ b/src/lua/TPTScriptInterface.cpp @@ -224,7 +224,7 @@ String TPTScriptInterface::FormatCommand(String command) String outputData; //Split command into words, put them on the stack - for(String word : command.PartitionBy(' ')) + for(String word : command.PartitionBy(' ', true)) words.push_back(word); while(!words.empty()) {