]> git.stg.codes - stg.git/blobdiff - projects/stargazer/settings_impl.cpp
Correcting code
[stg.git] / projects / stargazer / settings_impl.cpp
index 8e4acceeb033b6f84c4cdfd744fe9225947ebd32..8511794cddc512a2be0bea12d0264ddca9a5df55 100644 (file)
@@ -458,15 +458,12 @@ while (node)
         }
 
         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++;
+                }
             }
-        }
     node = node->getNextNode();
     }