Skip to content

Commit

Permalink
Fix get station (#508)
Browse files Browse the repository at this point in the history
  • Loading branch information
felixguendling committed May 16, 2024
1 parent f5739ca commit 0f74157
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions modules/nigiri/src/get_station.cc
Original file line number Diff line number Diff line change
Expand Up @@ -154,11 +154,11 @@ struct rt_ev_iterator : public ev_iterator {
n::stop_idx_t const stop_idx, n::unixtime_t const start,
n::event_type const ev_type, n::direction const dir)
: rtt_{rtt},
finished_(dir == n::direction::kForward ? time() < start
: time() > start),
stop_idx_{stop_idx},
rt_t_{rt_t},
ev_type_{ev_type} {
ev_type_{ev_type},
finished_(dir == n::direction::kForward ? time() < start
: time() > start) {

assert((ev_type == n::event_type::kDep &&
stop_idx_ < rtt.rt_transport_location_seq_[rt_t].size() - 1U) ||
Expand Down Expand Up @@ -187,10 +187,10 @@ struct rt_ev_iterator : public ev_iterator {
void increment() override { finished_ = true; }

n::rt_timetable const& rtt_;
bool finished_{false};
n::stop_idx_t stop_idx_;
n::rt_transport_idx_t rt_t_;
n::event_type ev_type_;
bool finished_{false};
};

std::vector<n::rt::run> get_events(
Expand Down

0 comments on commit 0f74157

Please sign in to comment.