1
0
Fork 0

Quiet a warning loading some ground-nets

This commit is contained in:
James Turner 2017-09-22 09:33:03 +01:00
parent 6db901a67f
commit a005273724

View file

@ -128,7 +128,11 @@ void FGGroundNetXMLLoader::startParking(const XMLAttributes &atts)
else if (attname == "pushBackRoute") {
const string attrVal = atts.getValue(i);
try {
pushBackRoute = simgear::strutils::readNonNegativeInt<int>(attrVal);
if (attrVal == "None") {
pushBackRoute = -2;
} else {
pushBackRoute = simgear::strutils::readNonNegativeInt<int>(attrVal);
}
} catch (const sg_exception& e) {
SG_LOG(SG_NAVAID, SG_DEV_WARN,
getPath() << ":" << getLine() << ": " <<