diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2013-12-07 23:35:24 +0100 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2013-12-07 23:35:24 +0100 |
commit | b779d84663024751e814a324717c1b9b4dcad6a6 (patch) | |
tree | 32841c2daba551e50ee59141e60bc78d24069754 | |
parent | Fixed water starting fires (diff) | |
download | cuberite-b779d84663024751e814a324717c1b9b4dcad6a6.tar cuberite-b779d84663024751e814a324717c1b9b4dcad6a6.tar.gz cuberite-b779d84663024751e814a324717c1b9b4dcad6a6.tar.bz2 cuberite-b779d84663024751e814a324717c1b9b4dcad6a6.tar.lz cuberite-b779d84663024751e814a324717c1b9b4dcad6a6.tar.xz cuberite-b779d84663024751e814a324717c1b9b4dcad6a6.tar.zst cuberite-b779d84663024751e814a324717c1b9b4dcad6a6.zip |
-rw-r--r-- | src/Root.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Root.cpp b/src/Root.cpp index f15bfd366..1c81878f9 100644 --- a/src/Root.cpp +++ b/src/Root.cpp @@ -77,11 +77,11 @@ void cRoot::InputThread(void * a_Params) while (!(self.m_bStop || self.m_bRestart) && std::cin.good()) { - std::string Command; + AString Command; std::getline(std::cin, Command); if (!Command.empty()) - { - self.ExecuteConsoleCommand(Command, Output); + { + self.ExecuteConsoleCommand(TrimString(Command), Output); } } |