Menu

Commit [r20009]  Maximize  Restore  History

switched the order of an id comparison in PersonDriverAgentImpl - the mandatory field is now the one

which is dereferenced. if e.g. this agent is wrapped and never asked to choose the next link, the cachedNextLinkId may well be null. Also, the passed new linkId is now used as the next currentLinkId (which ordinarily doesn't make a difference,because of the equality check)

michaz 2012-06-21

changed /matsim/trunk/src/main/java/org/matsim/core/mobsim/qsim/agents/PersonDriverAgentImpl.java
/matsim/trunk/src/main/java/org/matsim/core/mobsim/qsim/agents/PersonDriverAgentImpl.java Diff Switch to side-by-side view
Loading...
MongoDB Logo MongoDB