Skip to content

Commit

Permalink
fixing access to invalid option
Browse files Browse the repository at this point in the history
  • Loading branch information
namdre committed Jan 8, 2025
1 parent 6ebc2a4 commit e5bea9d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/router/RORouteHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@ RORouteHandler::RORouteHandler(RONet& net, const std::string& file,
myCurrentVTypeDistribution(nullptr),
myCurrentAlternatives(nullptr),
myUseTaz(OptionsCont::getOptions().getBool("with-taz")),
myWriteJunctions(OptionsCont::getOptions().getBool("write-trips") && OptionsCont::getOptions().getBool("write-trips.junctions"))
myWriteJunctions(OptionsCont::getOptions().exists("write-trips")
&& OptionsCont::getOptions().getBool("write-trips")
&& OptionsCont::getOptions().getBool("write-trips.junctions"))
{
myActiveRoute.reserve(100);
}
Expand Down

0 comments on commit e5bea9d

Please sign in to comment.