Skip to content

Commit

Permalink
fixing optional param retrieval #14285
Browse files Browse the repository at this point in the history
  • Loading branch information
behrisch committed Feb 2, 2024
1 parent 52a79b7 commit 136d763
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/emissions/EnergyParams.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ EnergyParams::getDoubleOptional(SumoXMLAttr attr, const double def) const {
return it->second;
}
if (mySecondaryParams != nullptr) {
return mySecondaryParams->getDouble(attr);
return mySecondaryParams->getDoubleOptional(attr, def);
}
return def;
}
Expand Down

0 comments on commit 136d763

Please sign in to comment.