We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 18ef898 commit db03b4cCopy full SHA for db03b4c
1 file changed
src/rt/frun.cc
@@ -131,14 +131,10 @@ run_stop run_stop::get_first_trip_stop(event_type const ev_type) const {
131
auto const trip = get_trip_idx(ev_type);
132
auto copy = *this;
133
134
- while (copy.stop_idx_ > 0U && copy.get_trip_idx(event_type::kDep) == trip) {
+ while (copy.stop_idx_ > 0U && copy.get_trip_idx(event_type::kArr) == trip) {
135
--copy.stop_idx_;
136
}
137
138
- if (copy.get_trip_idx(event_type::kDep) != trip) {
139
- ++copy.stop_idx_;
140
- }
141
-
142
return copy;
143
144
0 commit comments