Skip to content

Commit

Permalink
Fixed error creating routes due an invalid probability. Refs #457
Browse files Browse the repository at this point in the history
  • Loading branch information
palvarezlopez committed Jan 27, 2025
1 parent d63f839 commit fffbb53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/netedit/frames/demand/GNERouteFrame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ GNERouteFrame::createPath(const bool /*useLastRoute*/) {
myRouteBaseObject->addStringAttribute(SUMO_ATTR_ID, myViewNet->getNet()->getAttributeCarriers()->generateDemandElementID(SUMO_TAG_ROUTE));
}
// add probability (needed for distributions)
myRouteBaseObject->addDoubleAttribute(SUMO_ATTR_PROB, 0.5);
myRouteBaseObject->addDoubleAttribute(SUMO_ATTR_PROB, 1.0);
// declare edge vector
std::vector<std::string> edges;
for (const auto& path : myPathCreator->getPath()) {
Expand Down

0 comments on commit fffbb53

Please sign in to comment.