Fix a couple compiler warnings.
This commit is contained in:
parent
6e73e7dc08
commit
b262586763
1 changed files with 5 additions and 3 deletions
|
@ -40,18 +40,20 @@ SG_USING_STD(vector);
|
||||||
void
|
void
|
||||||
fgDefaultWeatherValue (const char * propname, double value)
|
fgDefaultWeatherValue (const char * propname, double value)
|
||||||
{
|
{
|
||||||
int i;
|
unsigned int i;
|
||||||
|
|
||||||
SGPropertyNode * branch = fgGetNode("/environment/config/boundary", true);
|
SGPropertyNode * branch = fgGetNode("/environment/config/boundary", true);
|
||||||
vector<SGPropertyNode_ptr> entries = branch->getChildren("entry");
|
vector<SGPropertyNode_ptr> entries = branch->getChildren("entry");
|
||||||
for (i = 0; i < entries.size(); i++)
|
for (i = 0; i < entries.size(); i++) {
|
||||||
entries[i]->setDoubleValue(propname, value);
|
entries[i]->setDoubleValue(propname, value);
|
||||||
|
}
|
||||||
|
|
||||||
branch = fgGetNode("/environment/config/aloft", true);
|
branch = fgGetNode("/environment/config/aloft", true);
|
||||||
entries = branch->getChildren("entry");
|
entries = branch->getChildren("entry");
|
||||||
for (i = 0; i < entries.size(); i++)
|
for (i = 0; i < entries.size(); i++) {
|
||||||
entries[i]->setDoubleValue(propname, value);
|
entries[i]->setDoubleValue(propname, value);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Add table
Reference in a new issue