Fix a bug in RoadGraph::generateMesh()