Fix scale_factor bug (#5303)

* check for scale_factor != 1

* changelog
This commit is contained in:
Kajari Ghosh
2018-12-10 17:11:08 -05:00
committed by GitHub
parent 01ca32c81c
commit 92d3ce789b
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -96,7 +96,7 @@ Status TablePlugin::HandleRequest(const RoutingAlgorithmsInterface &algorithms,
}
// Scan table for null results - if any exist, replace with distance estimates
if (params.fallback_speed != INVALID_FALLBACK_SPEED || params.scale_factor > 0)
if (params.fallback_speed != INVALID_FALLBACK_SPEED || params.scale_factor != 1)
{
for (std::size_t row = 0; row < num_sources; row++)
{