X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/37925a173b073b547ffc7dd7412de658accf694c..ab73d1ffd4233fbfc97c53ba5160f6e0367196a4:/projects/stargazer/settings_impl.cpp?ds=inline diff --git a/projects/stargazer/settings_impl.cpp b/projects/stargazer/settings_impl.cpp index 8e4accee..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,14 +457,11 @@ while (node) } } - if (strcasecmp(node->getName(), "ScriptParams") == 0) + if (strcasecmp(node->getName(), "ScriptParams") == 0) { - int i; - i=0; - while (node->getValue(i)!=NULL) + for (int i = 0; node->getValue(i) != NULL; ++i) { - scriptParams.push_back(node->getValue(i)); - i++; + scriptParams.push_back(node->getValue(i)); } } node = node->getNextNode();