diff options
| author | Alexander Gavrilov | 2012-01-29 18:17:06 +0400 |
|---|---|---|
| committer | Alexander Gavrilov | 2012-01-29 18:17:06 +0400 |
| commit | 04b505cde4fe51d6410d07de6bd0a077ce2f9abf (patch) | |
| tree | 31f59e9c3ff40855adb9ab90efa35cb1e438bcef /plugins/autodump.cpp | |
| parent | e5be2c75c2f601657adff3865a5bb1883843ba88 (diff) | |
| download | dfhack-04b505cde4fe51d6410d07de6bd0a077ce2f9abf.tar.gz dfhack-04b505cde4fe51d6410d07de6bd0a077ce2f9abf.tar.bz2 dfhack-04b505cde4fe51d6410d07de6bd0a077ce2f9abf.tar.xz | |
Actually scan through all parameters in autodump.
Diffstat (limited to 'plugins/autodump.cpp')
| -rw-r--r-- | plugins/autodump.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/autodump.cpp b/plugins/autodump.cpp index 7299da67..267a484a 100644 --- a/plugins/autodump.cpp +++ b/plugins/autodump.cpp @@ -88,9 +88,9 @@ static command_result autodump_main(Core * c, vector <string> & parameters) bool need_visible = false; bool need_hidden = false; bool need_forbidden = false; - if(parameters.size() > 0) + for (unsigned i = 0; i < parameters.size(); i++) { - string & p = parameters[0]; + string & p = parameters[i]; if(p == "destroy") destroy = true; else if (p == "destroy-here") |
