diff options
| author | Clayton Hughes | 2012-03-12 00:32:43 -0700 |
|---|---|---|
| committer | Clayton Hughes | 2012-03-12 00:32:43 -0700 |
| commit | d7f7437ca1a7b056795cd98e92194604e2c17937 (patch) | |
| tree | a993485b00a19648587d0383764de7f098f9cabf /plugins/workflow.cpp | |
| parent | 708dc6c32d2b874aab3305894345eeefaec91a96 (diff) | |
| download | dfhack-d7f7437ca1a7b056795cd98e92194604e2c17937.tar.gz dfhack-d7f7437ca1a7b056795cd98e92194604e2c17937.tar.bz2 dfhack-d7f7437ca1a7b056795cd98e92194604e2c17937.tar.xz | |
"clear all" wasn't working properly - I'm bad at counting.
Diffstat (limited to 'plugins/workflow.cpp')
| -rw-r--r-- | plugins/workflow.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/workflow.cpp b/plugins/workflow.cpp index e3283018..3f35745d 100644 --- a/plugins/workflow.cpp +++ b/plugins/workflow.cpp @@ -1573,8 +1573,8 @@ static command_result workflow_cmd(Core *c, vector <string> & parameters) return CR_FAILURE; } else if (cmd == "clear") - { - if(parameters.size() == 1 && parameters[0] == "all") + { + if(parameters.size() == 2 && parameters[1] == "all") { delete_all_constraints(c); return CR_OK; |
