"clear all" wasn't working properly - I'm bad at counting.

develop
Clayton Hughes 2012-03-12 00:32:43 -07:00
parent 708dc6c32d
commit d7f7437ca1
1 changed files with 2 additions and 2 deletions

@ -1573,8 +1573,8 @@ static command_result workflow_cmd(Core *c, vector <string> & parameters)
return CR_FAILURE; return CR_FAILURE;
} }
else if (cmd == "clear") else if (cmd == "clear")
{ {
if(parameters.size() == 1 && parameters[0] == "all") if(parameters.size() == 2 && parameters[1] == "all")
{ {
delete_all_constraints(c); delete_all_constraints(c);
return CR_OK; return CR_OK;