diff options
| author | Valentin Ochs | 2012-08-08 10:50:07 +0200 |
|---|---|---|
| committer | Valentin Ochs | 2012-08-08 10:50:07 +0200 |
| commit | 2abb9a898ca86c301db626db227714073e61a3a3 (patch) | |
| tree | 1edf3dd59e117b5f903416107a0c8de17ce104e9 /plugins/autolabor.cpp | |
| parent | 4039d2c0b7cddf458cb5ad4afc006ab66371416d (diff) | |
| download | dfhack-2abb9a898ca86c301db626db227714073e61a3a3.tar.gz dfhack-2abb9a898ca86c301db626db227714073e61a3a3.tar.bz2 dfhack-2abb9a898ca86c301db626db227714073e61a3a3.tar.xz | |
One more autolabor cleanup
Diffstat (limited to 'plugins/autolabor.cpp')
| -rw-r--r-- | plugins/autolabor.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/plugins/autolabor.cpp b/plugins/autolabor.cpp index d23c6692..c3a2b313 100644 --- a/plugins/autolabor.cpp +++ b/plugins/autolabor.cpp @@ -1348,16 +1348,12 @@ command_result autolabor (color_ostream &out, std::vector <std::string> & parame { enable_plugin(out); } - else if(!enable) + else if(!enable && enable_autolabor) { - if (enable_autolabor) - { - enable_autolabor = false; - setOptionEnabled(CF_ENABLED, false); - } + enable_autolabor = false; + setOptionEnabled(CF_ENABLED, false); out << "The plugin is disabled." << endl; - return CR_OK; } return CR_OK; |
