"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

@ -1574,7 +1574,7 @@ static command_result workflow_cmd(Core *c, vector <string> & parameters)
} }
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;