X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/55e291c991d3132ad4e5b5513a04bbce779e2b6c..6c05b2e63b58b19df2f35707fa12f238a18458e7:/projects/stargazer/settings_impl.cpp?ds=sidebyside diff --git a/projects/stargazer/settings_impl.cpp b/projects/stargazer/settings_impl.cpp index 8511794c..92670cb5 100644 --- a/projects/stargazer/settings_impl.cpp +++ b/projects/stargazer/settings_impl.cpp @@ -243,7 +243,7 @@ while (node) { rules = node->getValue(0); } - + if (strcasecmp(node->getName(), "DetailStatWritePeriod") == 0) { if (ParseDetailStatWritePeriod(node->getValue(0)) != 0) @@ -457,13 +457,13 @@ while (node) } } - if (strcasecmp(node->getName(), "ScriptParams") == 0) + if (strcasecmp(node->getName(), "ScriptParams") == 0) + { + for (int i = 0; node->getValue(i) != NULL; ++i) { - for (int i = 0; node->getValue(i) != NULL; ++i) - { - scriptParams.push_back(node->getValue(i)); - } + scriptParams.push_back(node->getValue(i)); } + } node = node->getNextNode(); }