Groundnet parsing: Fix exception for missing value
Sentry-Id: FLIGHTGEAR-CJ
This commit is contained in:
parent
358fb70ee0
commit
a21c0f9c16
1 changed files with 1 additions and 1 deletions
|
@ -123,7 +123,7 @@ void FGGroundNetXMLLoader::startParking(const XMLAttributes &atts)
|
|||
else if (attname == "pushBackRoute") {
|
||||
const string attrVal = atts.getValue(i);
|
||||
try {
|
||||
if (attrVal == "None") {
|
||||
if (attrVal.empty() || (attrVal == "None")) {
|
||||
pushBackRoute = -2;
|
||||
} else {
|
||||
pushBackRoute = simgear::strutils::readNonNegativeInt<int>(attrVal);
|
||||
|
|
Loading…
Add table
Reference in a new issue