diff --git a/src/Main/util.cxx b/src/Main/util.cxx index c6ab0aa5c..e2c12cd74 100644 --- a/src/Main/util.cxx +++ b/src/Main/util.cxx @@ -40,17 +40,19 @@ SG_USING_STD(vector); void fgDefaultWeatherValue (const char * propname, double value) { - int i; + unsigned int i; SGPropertyNode * branch = fgGetNode("/environment/config/boundary", true); vector entries = branch->getChildren("entry"); - for (i = 0; i < entries.size(); i++) + for (i = 0; i < entries.size(); i++) { entries[i]->setDoubleValue(propname, value); + } branch = fgGetNode("/environment/config/aloft", true); entries = branch->getChildren("entry"); - for (i = 0; i < entries.size(); i++) + for (i = 0; i < entries.size(); i++) { entries[i]->setDoubleValue(propname, value); + } }