diff --git a/.pkg b/.pkg index 6807842..e452746 100644 --- a/.pkg +++ b/.pkg @@ -13,7 +13,7 @@ [geo] url=git@github.com:motis-project/geo.git branch=master - commit=ee76668f0f0454e4acd3c769e00c6868620e3490 + commit=10fde5b467825c059881c93aeea00412338a9b06 [cista] url=git@github.com:felixguendling/cista.git branch=master diff --git a/include/osr/platforms.h b/include/osr/platforms.h index 6255671..59a0b7b 100644 --- a/include/osr/platforms.h +++ b/include/osr/platforms.h @@ -134,6 +134,9 @@ struct platforms { } level_t get_level(ways const& w, platform_idx_t const i) const { + if (i == platform_idx_t::invalid()) { + return to_level(0.0); + } return std::visit( utl::overloaded{ [&](way_idx_t x) { return w.r_->way_properties_[x].from_level(); },