summaryrefslogtreecommitdiff
path: root/src/console/ConsoleController.cpp
diff options
context:
space:
mode:
authorjacob1 <jfu614@gmail.com>2013-01-09 02:00:13 (GMT)
committer jacob1 <jfu614@gmail.com>2013-01-09 02:00:13 (GMT)
commit6dad17c2e170abe561da0ba055c99b0c613e74bc (patch)
treedff3b556df32c00da10987d6dff05dd7fa58f784 /src/console/ConsoleController.cpp
parent9e218f1847f065a6637c7ca4bf4b5047b4b694c2 (diff)
downloadpowder-6dad17c2e170abe561da0ba055c99b0c613e74bc.zip
powder-6dad17c2e170abe561da0ba055c99b0c613e74bc.tar.gz
fix console not closing when you use !load
Diffstat (limited to 'src/console/ConsoleController.cpp')
-rw-r--r--src/console/ConsoleController.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/console/ConsoleController.cpp b/src/console/ConsoleController.cpp
index 7d61303..39e6e51 100644
--- a/src/console/ConsoleController.cpp
+++ b/src/console/ConsoleController.cpp
@@ -22,7 +22,7 @@ ConsoleController::ConsoleController(ControllerCallback * callback, CommandInter
void ConsoleController::EvaluateCommand(std::string command)
{
- if (command.substr(0, 5) == "!load ")
+ if (command.substr(0, 6) == "!load ")
CloseConsole();
int returnCode = commandInterface->Command(command);
if(command.length())