From af233b5547f55135e5fd22f0480e1efa0eda36cb Mon Sep 17 00:00:00 2001 From: Kajari Ghosh Date: Tue, 4 Dec 2018 23:34:49 -0500 Subject: [PATCH] correctly access durations vector --- src/engine/plugins/table.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/plugins/table.cpp b/src/engine/plugins/table.cpp index a9a5f1db7..50e41d75b 100644 --- a/src/engine/plugins/table.cpp +++ b/src/engine/plugins/table.cpp @@ -102,7 +102,7 @@ Status TablePlugin::HandleRequest(const RoutingAlgorithmsInterface &algorithms, { for (std::size_t column = 0; column < num_destinations; column++) { - const auto &table_index = row * num_sources + column; + const auto &table_index = row * num_destinations + column; BOOST_ASSERT(table_index < result_tables_pair.first.size()); if (result_tables_pair.first[table_index] == MAXIMAL_EDGE_DURATION) {