From ea30005762795e68372144d287fcdb7ee9caa071 Mon Sep 17 00:00:00 2001 From: Dennis Luxen Date: Tue, 11 Feb 2014 14:34:47 +0100 Subject: [PATCH] fixes and closes #914 and updates #907 --- Include/osrm/RouteParameters.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Include/osrm/RouteParameters.h b/Include/osrm/RouteParameters.h index 997ebd260..b35a0cf60 100644 --- a/Include/osrm/RouteParameters.h +++ b/Include/osrm/RouteParameters.h @@ -97,7 +97,10 @@ struct RouteParameters { } void addHint(const std::string & s) { - hints.push_back(s); + hints.resize( coordinates.size() ); + if( !hints.empty() ) { + hints.back() = s; + } } void setLanguage(const std::string & s) {