Path: blob/main/build_config/package/jupedsim/invalid_access.patch
193884 views
diff --git a/libsimulator/src/RoutingEngine.cpp b/libsimulator/src/RoutingEngine.cpp1index ee3bf96ae..f77dab852 1006442--- a/libsimulator/src/RoutingEngine.cpp3+++ b/libsimulator/src/RoutingEngine.cpp4@@ -303,12 +303,8 @@ RoutingEngine::straightenPath(Point from, Point to, const std::vector<CDT::Face_5waypoints.reserve(path.size() + 1);6for(size_t index_portal = 1; index_portal <= portalCount; ++index_portal) {7const auto face_from = path[index_portal - 1];8- const auto face_to = path[index_portal];9- if(face_from->neighbor(0) == face_to) {10- }11-12const auto portal =13- index_portal < portalCount ? get_edge(face_from, face_to) : LineSegment(to, to);14+ index_portal < portalCount ? get_edge(face_from, path[index_portal]) : LineSegment(to, to);1516const auto line_segment_left = portal.p2;17const auto line_segment_right = portal.p1;181920