fix "error: use of ‘n’ before deduction of ‘auto’"
This commit is contained in:
parent
c177aeb623
commit
d1116b0e25
1 changed files with 2 additions and 2 deletions
|
@ -612,8 +612,8 @@ std::pair<bool, SGGeod> FGAICarrier::initialPositionForCarrier(const std::string
|
|||
[namePennant] (const SGPropertyNode* n)
|
||||
{
|
||||
// don't want to use a recursive lambda here, so inner search is a flat loop
|
||||
for (auto n : n->getChildren("name")) {
|
||||
if (n->getStringValue() == namePennant) return true;
|
||||
for (auto nameChild : n->getChildren("name")) {
|
||||
if (nameChild->getStringValue() == namePennant) return true;
|
||||
}
|
||||
return false;
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue