1
0
Fork 0

fix "error: use of ‘n’ before deduction of ‘auto’"

This commit is contained in:
Torsten Dreyer 2019-02-06 09:45:45 +01:00
parent c177aeb623
commit d1116b0e25

View file

@ -612,8 +612,8 @@ std::pair<bool, SGGeod> FGAICarrier::initialPositionForCarrier(const std::string
[namePennant] (const SGPropertyNode* n) [namePennant] (const SGPropertyNode* n)
{ {
// don't want to use a recursive lambda here, so inner search is a flat loop // don't want to use a recursive lambda here, so inner search is a flat loop
for (auto n : n->getChildren("name")) { for (auto nameChild : n->getChildren("name")) {
if (n->getStringValue() == namePennant) return true; if (nameChild->getStringValue() == namePennant) return true;
} }
return false; return false;
}); });