I am continuing this post after This we have a class as:
class LaneConnector { public: const Lane* getLaneFrom() const { return From; } con
There is a very simple way to catch problems like this way before they get a chance to expose themselves. Write unit tests!
My guess is that all your LaneConnectors start at the same line. So, GetLaneFrom()->GetLaneID() yields the same result on all LaneConnectors