Quiet a warning loading some ground-nets
This commit is contained in:
parent
6db901a67f
commit
a005273724
1 changed files with 5 additions and 1 deletions
|
@ -128,7 +128,11 @@ void FGGroundNetXMLLoader::startParking(const XMLAttributes &atts)
|
||||||
else if (attname == "pushBackRoute") {
|
else if (attname == "pushBackRoute") {
|
||||||
const string attrVal = atts.getValue(i);
|
const string attrVal = atts.getValue(i);
|
||||||
try {
|
try {
|
||||||
pushBackRoute = simgear::strutils::readNonNegativeInt<int>(attrVal);
|
if (attrVal == "None") {
|
||||||
|
pushBackRoute = -2;
|
||||||
|
} else {
|
||||||
|
pushBackRoute = simgear::strutils::readNonNegativeInt<int>(attrVal);
|
||||||
|
}
|
||||||
} catch (const sg_exception& e) {
|
} catch (const sg_exception& e) {
|
||||||
SG_LOG(SG_NAVAID, SG_DEV_WARN,
|
SG_LOG(SG_NAVAID, SG_DEV_WARN,
|
||||||
getPath() << ":" << getLine() << ": " <<
|
getPath() << ":" << getLine() << ": " <<
|
||||||
|
|
Loading…
Add table
Reference in a new issue